Bug 278593 - [cocoa] NPE at ToolTipHelper
[cocoa] NPE at ToolTipHelper
Status: RESOLVED FIXED
Product: GEF
Classification: Tools
Component: Draw2d [GEF 3.x / Zest 1.x]
3.5
PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
: 3.5.2
Assigned To: Anthony Hunter CLA Friend
:
: 283168 292443 (view as bug list)
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2009-06-01 05:54 EDT by Oliver Schäfer CLA Friend
Modified: 2011-05-17 21:53 EDT (History)
8 users (show)

See Also:


Attachments
Patch for draw2d's ToolTipHelper.java (709 bytes, patch)
2009-06-07 16:25 EDT, Nicolas Rouquette CLA Friend
wayne: iplog+
Details | Diff
mylyn/context/zip (880 bytes, application/octet-stream)
2009-06-07 16:25 EDT, Nicolas Rouquette CLA Friend
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Schäfer CLA Friend 2009-06-01 05:54:17 EDT
Build ID: I20090515-1143

Steps To Reproduce:
1. Open UML activity diagram with UML2 Tools
2. Move mouse from workbench window to Dock on the bottom of the screen

eclipse.buildId=I20090515-1143
java.version=1.5.0_16
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.rcp.product -keyring /Users/xxx/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.rcp.product -keyring /Users/xxx/.eclipse_keyring -showlocation


More information:

java.lang.NullPointerException
	at org.eclipse.draw2d.ToolTipHelper$3.mouseEnter(ToolTipHelper.java:133)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:187)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3539)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1246)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1269)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1254)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1075)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3437)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3096)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Comment 1 Nicolas Rouquette CLA Friend 2009-06-07 16:25:42 EDT
Created attachment 138520 [details]
Patch for draw2d's ToolTipHelper.java
Comment 2 Nicolas Rouquette CLA Friend 2009-06-07 16:25:47 EDT
Created attachment 138521 [details]
mylyn/context/zip
Comment 3 Nicolas Rouquette CLA Friend 2009-06-07 16:48:13 EDT
The fix works for me.
Comment 4 Markus Franz CLA Friend 2009-06-15 03:22:34 EDT
I also found this bug with my own application using a GMF-based editor.

eclipse.buildId=I20090528-2000
java.version=1.6.0_07
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en

Comment 5 Ben Dixon CLA Friend 2009-07-09 10:13:03 EDT
We're seeing this same issue under OS X with:

eclipse.buildId=I20090611-1540
macosx
-ws
cocoa
-arch
x86
macosx
java.vendor=Apple Inc.
java.version=1.5.0_16

The problem was not present in Eclipse 3.4.2 but in 3.5 it causes some features to fail.
Comment 6 Anthony Hunter CLA Friend 2009-07-27 13:05:29 EDT
*** Bug 283168 has been marked as a duplicate of this bug. ***
Comment 7 Simon Pope CLA Friend 2009-09-03 22:35:22 EDT
I can reliably reproduce this problem as well. Bug fix works for me too.

Can someone please make the necessary commits to get this into the 3.6 stream, as well as the 3.5SR2, if there will be one?

Thanks.
Comment 8 Ben Dixon CLA Friend 2009-09-04 09:52:45 EDT
Seconding Simon's request.
Comment 9 Anthony Hunter CLA Friend 2009-11-26 17:13:43 EST
*** Bug 292443 has been marked as a duplicate of this bug. ***
Comment 10 Anthony Hunter CLA Friend 2009-12-10 12:56:12 EST
The fix committed to R3_5_maintenance and HEAD (3.5.2 and 3.6.0)