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

Bug 351500

Summary: NPE while removing a directory from index
Product: [Technology] JGit Reporter: Benjamin Muskalla <b.muskalla>
Component: JGitAssignee: Project Inbox <jgit.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.sohn, robin.rosenberg
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Benjamin Muskalla CLA 2011-07-07 19:36:26 EDT
Removed a META-INF folder from the index (only contained a MANIFEST.MF) and got this in the log.

!ENTRY org.eclipse.core.jobs 4 2 2011-07-08 01:31:36.935
!MESSAGE An internal error occurred during: "Removing file from Git Index".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jgit.treewalk.TreeWalk.exitSubtree(TreeWalk.java:971)
	at org.eclipse.jgit.treewalk.TreeWalk.next(TreeWalk.java:547)
	at org.eclipse.egit.core.op.RemoveFromIndexOperation.updateDirCache(RemoveFromIndexOperation.java:126)
	at org.eclipse.egit.core.op.RemoveFromIndexOperation.execute(RemoveFromIndexOperation.java:78)
	at org.eclipse.egit.ui.internal.actions.RemoveFromIndexActionHandler$1.run(RemoveFromIndexActionHandler.java:53)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Matthias Sohn CLA 2012-04-19 03:02:03 EDT
which JGit version did you use here ? 2.0.0-SNAPSHOT can't throw a NPE on that line
Comment 2 Robin Rosenberg CLA 2013-04-19 04:39:03 EDT
(In reply to comment #1)
> which JGit version did you use here ? 2.0.0-SNAPSHOT can't throw a NPE on
> that line

Assume fixed