Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336696 - NPE while trying to discard changes
Summary: NPE while trying to discard changes
Status: CLOSED DUPLICATE of bug 336557
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 0.10.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Matthias Sohn CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-09 06:39 EST by Pascal Rapicault CLA
Modified: 2011-02-28 09:48 EST (History)
1 user (show)

See Also:


Attachments

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