diff --git a/gfx/thebes/gfxBlur.cpp b/gfx/thebes/gfxBlur.cpp index 440f2c9951e..30546560563 100644 --- a/gfx/thebes/gfxBlur.cpp +++ b/gfx/thebes/gfxBlur.cpp @@ -416,6 +416,9 @@ CreateBlurMask(const IntSize& aRectSize, IntPoint topLeft; RefPtr result = blur.DoBlur(&aDestDrawTarget, &topLeft); + if (!result) { + return nullptr; + } IntRect expandedMinRect(topLeft, result->GetSize()); aExtendDestBy = expandedMinRect - minRect;