diff options
author | Silenio Quarti <silenio> | 2009-08-19 20:07:24 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2009-08-19 20:07:24 +0000 |
commit | 0268fa665c7d5e43a14cef421e4112dd8e04e488 (patch) | |
tree | f695b63fdbb921a79d5f20790d3d1ee8b8f37eac | |
parent | 6bc78ede54944c71e64c61a7f160c6d93e41ced6 (diff) | |
download | eclipse.platform.swt-0268fa665c7d5e43a14cef421e4112dd8e04e488.tar.gz eclipse.platform.swt-0268fa665c7d5e43a14cef421e4112dd8e04e488.tar.xz eclipse.platform.swt-0268fa665c7d5e43a14cef421e4112dd8e04e488.zip |
NullPointer introduced by bug#279103
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java | 1 | ||||
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java index 1f3f1c9e46..5ff7efc434 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java @@ -1885,6 +1885,7 @@ void mouseDown (int /*long*/ id, int /*long*/ sel, int /*long*/ theEvent) { } wasSelected = false; super.mouseDown(id, sel, theEvent); + if (isDisposed()) return; if (!wasSelected) { NSPoint pt = view.convertPoint_fromView_(nsEvent.locationInWindow(), null); int /*long*/ row = widget.rowAtPoint(pt); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java index 1bafd0a54f..a57219dc3b 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java @@ -1913,6 +1913,7 @@ void mouseDown (int /*long*/ id, int /*long*/ sel, int /*long*/ theEvent) { } wasSelected = false; super.mouseDown(id, sel, theEvent); + if (isDisposed()) return; if (!wasSelected) { NSPoint pt = view.convertPoint_fromView_(nsEvent.locationInWindow(), null); int /*long*/ row = widget.rowAtPoint(pt); |