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

Bug 336696

Summary: NPE while trying to discard changes
Product: [Technology] JGit Reporter: Pascal Rapicault <pascal>
Component: JGitAssignee: Matthias Sohn <matthias.sohn>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: stefan.lay
Version: 0.10.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Pascal Rapicault CLA 2011-02-09 06:39:26 EST
Using jgit 0.10.1 and trying to discard the changes I get.
Now I get the following error message: 
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.


java.lang.NullPointerException
at org.eclipse.jgit.dircache.DirCacheCheckout.checkoutEntry(DirCacheCheckout.java:808)
at org.eclipse.egit.core.op.DiscardChangesOperation.discardChange(DiscardChangesOperation.java:161)
at org.eclipse.egit.core.op.DiscardChangesOperation.discardChanges(DiscardChangesOperation.java:117)
at org.eclipse.egit.core.op.DiscardChangesOperation.access$0(DiscardChangesOperation.java:101)
at org.eclipse.egit.core.op.DiscardChangesOperation$1.run(DiscardChangesOperation.java:94)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
at org.eclipse.egit.core.op.DiscardChangesOperation.execute(DiscardChangesOperation.java:97)
at org.eclipse.egit.ui.internal.actions.DiscardChangesActionHandler$1.run(DiscardChangesActionHandler.java:46)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Stefan Lay CLA 2011-02-28 09:48:10 EST

*** This bug has been marked as a duplicate of bug 336557 ***