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

Bug 338053

Summary: [historyView] Exception when Repo is empty
Product: [Technology] EGit Reporter: Stefan Lay <stefan.lay>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: matthias.sohn
Version: 0.12   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Stefan Lay CLA 2011-02-24 03:23:43 EST
Create an empty repo in the Git Repositories view.
Select the rpository node while the Hitory View is open.

The following Exception in thrown:

java.lang.IllegalStateException: Cannot parse HEAD in: empty
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.resolveHead(GitHistoryPage.java:1229)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.initAndStartRevWalk(GitHistoryPage.java:1188)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.inputSet(GitHistoryPage.java:957)
	at org.eclipse.team.ui.history.HistoryPage.setInput(HistoryPage.java:59)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.setInput(GitHistoryPage.java:869)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.showHistoryPageFor(GenericHistoryView.java:738)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.showHistory(GenericHistoryView.java:969)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.access$3(GenericHistoryView.java:965)
	at org.eclipse.team.internal.ui.history.GenericHistoryView$3.selectionChanged(GenericHistoryView.java:435)
	at org.eclipse.ui.internal.AbstractSelectionService.firePostSelection(AbstractSelectionService.java:179)
Comment 1 Stefan Lay CLA 2011-02-24 10:44:08 EST
Fix proposed: http://egit.eclipse.org/r/#change,2589
Comment 2 Matthias Sohn CLA 2011-02-26 17:32:41 EST

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