From 47842987c5c0af60e320f216c086dd37a38e4da1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 29 Jun 2016 17:33:45 +0100 Subject: [PATCH] Added null pointer check --- src/osgPlugins/p3d/ReaderWriterP3D.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/p3d/ReaderWriterP3D.cpp b/src/osgPlugins/p3d/ReaderWriterP3D.cpp index 291bf8431..0ac468c4b 100644 --- a/src/osgPlugins/p3d/ReaderWriterP3D.cpp +++ b/src/osgPlugins/p3d/ReaderWriterP3D.cpp @@ -2814,7 +2814,8 @@ class MyReadFileCallback : public virtual osgDB::ReadFileCallback OSG_INFO<<" inserting object into file cache "<setPluginStringData("filename",newpath); + if (options) options->setPluginStringData("filename",newpath); + return result; } }