Community
Participate
Working Groups
If you open a compare editor from git staging view, and then switch perspectives, you get this each time: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) at org.eclipse.swt.SWT.error(SWT.java:4300) at org.eclipse.swt.SWT.error(SWT.java:4215) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:977) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:893) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:91) at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:565) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:520) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 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:352) 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:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:624) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:579) at org.eclipse.equinox.launcher.Main.run(Main.java:1433) Caused by: java.lang.NullPointerException at org.eclipse.compare.contentmergeviewer.ContentMergeViewer$ContentMergeViewerLayout.layout(ContentMergeViewer.java:121) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1263) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1270) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1249) at org.eclipse.swt.widgets.Composite.layout(Composite.java:664) at org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon$6$1.run(MinMaxAddon.java:307) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) ... 23 more
Can you consistently reproduce this problem, Ed? I do not see it.
Yes, I have M4 installed along with the egit nightly build that was available yesterday from: http://download.eclipse.org/egit/updates-nightly Perhaps it's an egit problem. I don't think I had this problem until I installed the nightly...
Thanks for the information, Ed. With EGit 1.3.0.201201121315 installed on top of I20111209-2100, I was able to reproduce the problem by switching perspectives quickly after having opened a compare editor.
*** This bug has been marked as a duplicate of bug 348429 ***
If you have this problem please vote for this bug please vote for its duplicate here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=348429