diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index e8606f6b605..af95c7aeeae 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -4783,7 +4783,7 @@ GpStatus WINGDIPAPI GdipGetNearestColor(GpGraphics *graphics, ARGB* argb) if(graphics->busy) return ObjectBusy; - if (graphics->image->type == ImageTypeBitmap) + if (graphics->image && graphics->image->type == ImageTypeBitmap) { static int once; GpBitmap *bitmap = (GpBitmap *)graphics->image;