Added null pointer check
This commit is contained in:
parent
9fe0c23af4
commit
47842987c5
@ -2814,7 +2814,8 @@ class MyReadFileCallback : public virtual osgDB::ReadFileCallback
|
||||
OSG_INFO<<" inserting object into file cache "<<filename<<", "<<result.getObject()<<std::endl;
|
||||
_objectCache[filename] = result.getObject();
|
||||
|
||||
options->setPluginStringData("filename",newpath);
|
||||
if (options) options->setPluginStringData("filename",newpath);
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user