[skip ci] when converting from SoSFImage to QImage check that the internal buffer is not null

This commit is contained in:
wmayer
2019-12-09 17:44:02 +01:00
parent 09cd151221
commit 3490adf7da

View File

@@ -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];