Commit 004afebd authored by Isaak Lim's avatar Isaak Lim
Browse files

null pointer check for getObject in datacontrol and selection plugin

parent 6f55d9cd
......@@ -1547,7 +1547,7 @@ void SelectionBasePlugin::addedEmptyObject (int _id) {
PluginFunctions::getObject(_id, bObject);
// Groups are ok, others will cause an error
if (!bObject->isGroup()) {
if (bObject && !bObject->isGroup()) {
emit log(LOGERR, "Could not retrieve object type! Maybe a selection environment will be missing.");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment