diff --git a/uppsrc/RasterPlayer/RasterPlayer.cpp b/uppsrc/RasterPlayer/RasterPlayer.cpp index 25740e611..9fe2b0d2d 100644 --- a/uppsrc/RasterPlayer/RasterPlayer.cpp +++ b/uppsrc/RasterPlayer/RasterPlayer.cpp @@ -55,6 +55,8 @@ void RasterPlayer::Paint(Draw& w) { static StaticCriticalSection mutex; bool RasterPlayer::LoadBuffer(const String &buffer) { + if (buffer.IsEmpty()) + return false; StringStream str(buffer); One raster = StreamRaster::OpenAny(str); if(!raster)