Skip to content

Commit daf247e

Browse files
committed
Fix a null pointer issue
1 parent 386c90b commit daf247e

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics

1 file changed

+1
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ private int calculateZoomForImage(int gcZoom, int srcWidth, int srcHeight, int d
11971197
// unscaled images can use the GC zoom
11981198
return gcZoom;
11991199
}
1200-
if (!drawable.isAutoScalable()) {
1200+
if (drawable != null && !drawable.isAutoScalable()) {
12011201
return gcZoom;
12021202
}
12031203

0 commit comments

Comments
 (0)