Bug 287278

Summary: [Widgets] NPE while switching between compare modes in Java compare editor
Product: [Eclipse Project] Platform Reporter: Tomasz Zarna <tomasz.zarna>
Component: SWTAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact: Silenio Quarti <Silenio_Quarti>
Severity: normal    
Priority: P3 CC: cocoakevin, eclipse.felipe
Version: 3.6   
Target Milestone: 3.6 M2   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Tomasz Zarna CLA 2009-08-21 05:25:06 EDT
I20090818-0800

Steps:
1. Open Java compare editor (compare two .java files)
2. Switch to Text Compare using the drop down button next to "Java Source Compare" label
3. Click anywhere

java.lang.NullPointerException
	at org.eclipse.swt.widgets.Display.runPopups(Display.java:3523)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3130)
	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:367)
	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:610)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:565)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1362)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1338)
Comment 1 Bogdan Gheorghe CLA 2009-08-21 10:14:05 EDT
Just to be sure: are you using the Carbon port?
Comment 2 Tomasz Zarna CLA 2009-08-21 11:06:06 EDT
Nope, I'm using Cocoa.
Comment 3 Silenio Quarti CLA 2009-08-21 13:59:46 EDT
Fixed > 20090821