Skip to content

Commit 82c03f5

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

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
@@ -1302,7 +1302,7 @@ private void drawImage(Image srcImage, int srcX, int srcY, int srcWidth, int src
13021302
if (data.gdipGraphics != 0) {
13031303
//TODO - cache bitmap
13041304
long [] gdipImage = srcImage.createGdipImageFromHandle(tempImageHandle);
1305-
long img = gdipImage[0];
1305+
` long img = gdipImage[0];
13061306
int imgWidth = Gdip.Image_GetWidth(img);
13071307
int imgHeight = Gdip.Image_GetHeight(img);
13081308

0 commit comments

Comments
 (0)