diff --git a/examples/osgconv/osgconv.cpp b/examples/osgconv/osgconv.cpp index d564ad7ac..819d11bea 100644 --- a/examples/osgconv/osgconv.cpp +++ b/examples/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; } } }