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

Bug 323275

Summary: Synchronize View: AssertionFailedException using "Next Difference" when using the Git Change Set Model
Product: [Technology] EGit Reporter: James Blackburn <jamesblackburn+eclipse>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen
Version: 0.9.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description James Blackburn CLA 2010-08-20 13:35:04 EDT
Eclipse EGit (Incubation)	0.9.0.201008191513	org.eclipse.egit.feature.group
  Eclipse JGit (Incubation)	0.9.0.201008181537	org.eclipse.jgit.feature.group

I get this AssertionFailedException using pressing the down arrow (Next Difference) button when the Git Change Set element is selected in the Synchronize View.

org.eclipse.core.runtime.AssertionFailedException: null argument:
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
	at org.eclipse.core.internal.runtime.AdapterManager.getAdapter(AdapterManager.java:290)
	at org.eclipse.team.internal.ui.Utils.getResourceMapping(Utils.java:955)
	at org.eclipse.team.internal.ui.Utils.getModelProvider(Utils.java:916)
	at org.eclipse.team.internal.ui.Utils.getCompareAdapter(Utils.java:902)
	at org.eclipse.team.ui.synchronize.ModelSynchronizeParticipant.hasCompareInputFor(ModelSynchronizeParticipant.java:321)
	at org.eclipse.team.internal.ui.synchronize.AbstractTreeViewerAdvisor$TreeCompareNavigator.hasCompareInput(AbstractTreeViewerAdvisor.java:82)
	at org.eclipse.team.internal.ui.synchronize.AbstractTreeViewerAdvisor$TreeCompareNavigator.selectChange(AbstractTreeViewerAdvisor.java:67)
	at org.eclipse.team.internal.ui.synchronize.actions.NavigateAction.run(NavigateAction.java:55)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
Comment 1 Remy Suen CLA 2010-08-20 15:08:41 EDT
Caused by incorrect implementation of the equals(Object) and hashCode() methods. See bug 323201.
Comment 2 Remy Suen CLA 2010-08-22 07:34:12 EDT
I can no longer reproduce this so it should be fixed on 0.9.0.201008211512 due to the fix for bug 323201.

James, please feel free to reopen this if you still encounter this with the latest nightlies.

*** This bug has been marked as a duplicate of bug 323201 ***