diff --git a/src/Gui/BitmapFactory.cpp b/src/Gui/BitmapFactory.cpp index 3878b6727601..3fbfbf84a354 100644 --- a/src/Gui/BitmapFactory.cpp +++ b/src/Gui/BitmapFactory.cpp @@ -693,6 +693,8 @@ void BitmapFactoryInst::convert(const SoSFImage& p, QImage& img) const int numcomponents; const unsigned char * bytes = p.getValue(size, numcomponents); + if (!bytes) + return; int width = (int)size[0]; int height = (int)size[1];