Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359313

Summary: NPE when trying to compare against multiple commits
Product: [Technology] EGit Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Remy Suen <remy.suen>
Status: RESOLVED FIXED QA Contact: Remy Suen <remy.suen>
Severity: normal    
Priority: P3    
Version: 1.1   
Target Milestone: 1.2-M1   
Hardware: All   
OS: All   
Whiteboard:

Description Remy Suen CLA 2011-09-28 18:02:16 EDT
1. Select a project > Context menu > Compare With > Commit...
2. Select two or more commits > Enter
3. The 'Git Tree Compare' view opens but nothing happens. An NPE is logged.

java.lang.NullPointerException
	at org.eclipse.egit.ui.internal.actions.CompareWithCommitActionHandler.execute(CompareWithCommitActionHandler.java:85)
	at org.eclipse.egit.ui.internal.actions.RepositoryAction.run(RepositoryAction.java:86)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
Comment 1 Remy Suen CLA 2011-10-23 09:01:26 EDT
A change set has been pushed to Gerrit for review.
http://egit.eclipse.org/r/#change,4397