Added null pointer check

This commit is contained in:
Robert Osfield 2016-06-25 15:42:34 +01:00
parent 3376bfbfc8
commit bc6a8948cc

View File

@ -851,7 +851,7 @@ osgDB::ReaderWriter::ReadResult ReaderWriter3DS::constructFrom3dsFile(Lib3dsFile
}
if (group && group->getName().empty()) group->setName(fileName);
if (osg::getNotifyLevel()>=osg::INFO)
if (group && osg::getNotifyLevel()>=osg::INFO)
{
OSG_INFO << "Final OSG node structure looks like this:"<< endl;
PrintVisitor pv(osg::notify(osg::INFO));