Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326486 - [sync] SIOOBE when opening compare for file below repo
Summary: [sync] SIOOBE when opening compare for file below repo
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 0.9.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Stefan Lay CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-29 03:22 EDT by Stefan Lay CLA
Modified: 2010-09-29 08:21 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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