You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix NullPointerException when creating cursor with null device #2414
This is a follow-up to e8aadbb which
introduced a regression when working with null devices.
If null is passed as argument, the value of Device.getDevice() is used
as a fallback when initializing this field. This field must be used for
all other operations in the constructor, rather than the constructor
argument.
Closes#2414
Copy file name to clipboardExpand all lines: tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Cursor.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,8 @@ public void test_ConstructorWithImageDataProvider() {
0 commit comments