Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311298 - Label Decorations don't work
Summary: Label Decorations don't work
Status: RESOLVED WORKSFORME
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 0.7.1   Edit
Hardware: PC Linux Qt
: P3 major (vote)
Target Milestone: 0.9.0   Edit
Assignee: Jens Baumgart CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-01 18:26 EDT by Genadz Batsyan CLA
Modified: 2010-08-31 03:46 EDT (History)
2 users (show)

See Also:


Attachments

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