diff --git a/image/src/Decoder.h b/image/src/Decoder.h index 544b14e916fd..ba9fcb1d4bd1 100644 --- a/image/src/Decoder.h +++ b/image/src/Decoder.h @@ -194,7 +194,8 @@ public: RawAccessFrameRef GetCurrentFrameRef() { - return mCurrentFrame->RawAccessRef(); + return mCurrentFrame ? mCurrentFrame->RawAccessRef() + : RawAccessFrameRef(); } protected: