[historyView] Fix NPE in GitCompareEditorInput#equals
commitb927e3ac025f88285a0e1de7b376830d3778d8e9
authorRobin Stocker <robin@nibor.org>
Mon, 6 Aug 2012 22:55:27 +0000 (7 00:55 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 6 Aug 2012 22:55:27 +0000 (7 00:55 +0200)
tree28ad40c51f873f3e98d32c08ee7d65956edd3e22
parentd5f293500ee3a4ed8e9701e9122061ad0a2bb964
[historyView] Fix NPE in GitCompareEditorInput#equals

The repository field may be null when a GitCompareEditorInput was
constructed with the IResource constructor but prepareInput was not yet
called.

The NPE could be observed like this:

1. Select two commits in the History view
2. Run Compare with Each Other
3. Do step 2 again

Bug: 349418
Change-Id: Iac868ed2b628e4fb0fda5a2fa161d89a333eb0a8
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/merge/GitCompareEditorInput.java