diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java index 5b17f305786..f6af9f37c45 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java @@ -1148,7 +1148,7 @@ private int calculateZoomForImage(int gcZoom, int srcWidth, int srcHeight, int d // unscaled images can use the GC zoom return gcZoom; } - if (!drawable.isAutoScalable()) { + if (drawable != null && !drawable.isAutoScalable()) { return gcZoom; }