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

Bug 326486

Summary: [sync] SIOOBE when opening compare for file below repo
Product: [Technology] EGit Reporter: Stefan Lay <stefan.lay>
Component: UIAssignee: Stefan Lay <stefan.lay>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.9.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Stefan Lay CLA 2010-09-29 03:22:31 EDT
When a file is directly in the root folder of the git repository I get a

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1931)
	at java.lang.String.substring(String.java:1904)
	at org.eclipse.egit.ui.internal.synchronize.compare.GitCompareInput.<init>(GitCompareInput.java:78)

when I double click on the node in the Synchronize View.
Comment 1 Stefan Lay CLA 2010-09-29 03:37:39 EDT
Code Review at http://egit.eclipse.org/r/#change,1673
Comment 2 Stefan Lay CLA 2010-09-29 08:21:56 EDT
Fixed with 0a6bc46470cb7cfb