Assembly: Fix the crash described in #18475

This commit is contained in:
xtemp09
2025-01-25 20:07:31 +07:00
committed by Chris Hennes
parent 293c8b0bc6
commit 5317d25254

View File

@@ -1385,6 +1385,11 @@ void StdCmdDelete::activated(int iMsg)
bool autoDeletion = true;
for(auto &sel : sels) {
auto obj = sel.getObject();
if (obj == nullptr){
Base::Console().DeveloperWarning("StdCmdDelete::activated",
"App::DocumentObject pointer is nullptr\n");
continue;
}
for(auto parent : obj->getInList()) {
if(!Selection().isSelected(parent)) {
ViewProvider* vp = Application::Instance->getViewProvider(parent);