Commit c32cffca authored by Mike Kremer's avatar Mike Kremer

Fixed accessing member of null pointer if object does not exist.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8963 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d819bbc4
......@@ -322,7 +322,7 @@ int getObjectId( const QString _name ) {
if(_name.isEmpty()) return -1;
BaseObject* object = objectRoot_->childExists( _name );
return object->id();
return object ? object->id() : -1;
}
// ===============================================================================
......
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