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

Bug 311298

Summary: Label Decorations don't work
Product: [Technology] JGit Reporter: Genadz Batsyan <gbatyan>
Component: JGitAssignee: Jens Baumgart <jens.baumgart>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: igor, stefan.lay
Version: 0.7.1   
Target Milestone: 0.9.0   
Hardware: PC   
OS: Linux Qt   
Whiteboard:

Description Genadz Batsyan CLA 2010-05-01 18:26:51 EDT
Error log says:

Exception in Decorator. The 'Git' decorator will be disabled.


java.lang.ArrayIndexOutOfBoundsException: 0
at org.eclipse.jgit.dircache.DirCacheTree.getChild(DirCacheTree.java:249)
at org.eclipse.jgit.dircache.DirCacheIterator.parseEntry(DirCacheIterator.java:202)
at org.eclipse.jgit.dircache.DirCacheIterator.<init>(DirCacheIterator.java:124)
at org.eclipse.jgit.dircache.DirCacheIterator.createSubtreeIterator(DirCacheIterator.java:133)
at org.eclipse.jgit.treewalk.AbstractTreeIterator.createSubtreeIterator(AbstractTreeIterator.java:479)
at org.eclipse.jgit.treewalk.TreeWalk.enterSubtree(TreeWalk.java:839)
at org.eclipse.jgit.treewalk.TreeWalk.next(TreeWalk.java:507)
at org.eclipse.egit.ui.internal.decorators.DecoratableResourceAdapter.extractContainerProperties(DecoratableResourceAdapter.java:274)
at org.eclipse.egit.ui.internal.decorators.DecoratableResourceAdapter.<init>(DecoratableResourceAdapter.java:108)
at org.eclipse.egit.ui.internal.decorators.GitLightweightDecorator.decorate(GitLightweightDecorator.java:211)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:371)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:331)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Stefan Lay CLA 2010-08-04 09:38:07 EDT
How can we reproduce this bug? Is there a special repository which causes the problem?
Comment 2 Igor Fedorenko CLA 2010-08-04 09:47:47 EDT
fwiw, I don't see the problem with recent 0.9.x egit builds.
Comment 3 Jens Baumgart CLA 2010-08-31 03:46:38 EDT
Problem seems to be fixed with the changes in decorator implementation (exclude derived stuff like bin etc).