diff --git a/applications/osgconv/osgconv.cpp b/applications/osgconv/osgconv.cpp index 16c0cef3b..7de1cc7d5 100644 --- a/applications/osgconv/osgconv.cpp +++ b/applications/osgconv/osgconv.cpp @@ -231,7 +231,7 @@ public: for (unsigned int im=0;imgetNumImages();++im) { osg::Image* image = texture->getImage(im); - if (image->isImageTranslucent()) hasTranslucentTexture = true; + if (image && image->isImageTranslucent()) hasTranslucentTexture = true; } } }