Community
Participate
Working Groups
1. Open a large commit in the commit editor with a lot of changes. 2. Open the 'Diff' page. 3. Immediately hit Ctrl+W to close the editor. 4. An NPE will be thrown after the diff calculation is complete. java.lang.NullPointerException at org.eclipse.egit.ui.internal.commit.DiffEditorPage$1$1.runInUIThread(DiffEditorPage.java:132) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
Technically, it shouldn't return null (see bug 357068) but it is what it is.
Proposed fix pushed to http://egit.eclipse.org/r/#change,4203
merged as d6fc3769a79338c1d7fbfe9f370b116f36113c30
(In reply to comment #1) > Technically, it shouldn't return null (see bug 357068) but it is what it is. I've fixed that.