Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351500 - NPE while removing a directory from index
Summary: NPE while removing a directory from index
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-07 19:36 EDT by Benjamin Muskalla CLA
Modified: 2013-04-19 04:39 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 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