PVS: V595 The pointer was utilized before it was verified against nullptr

This commit is contained in:
wmayer
2019-02-17 20:55:52 +01:00
parent 1e343d339f
commit 2bb5797568
7 changed files with 34 additions and 34 deletions

View File

@@ -56,7 +56,7 @@ DocumentObject* GroupExtension::addObject(const char* sType, const char* pObject
getExtendedObject()->getDocument()->removeObject(obj->getNameInDocument());
return nullptr;
}
if (obj) addObject(obj);
addObject(obj);
return obj;
}