Assembly: Fix the crash described in #18475
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user