Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336557 - Exception when executing "Replace With > File in Git Index"
Summary: Exception when executing "Replace With > File in Git Index"
Status: CLOSED DUPLICATE of bug 333222
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Matthias Sohn CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 336696 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-07 14:19 EST by Torkild Resheim CLA
Modified: 2011-08-04 17:55 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 Torkild Resheim CLA 2011-02-07 14:19:49 EST
What steps will reproduce the problem?
1. Have a project with local changes.
2. Attempt to replace with latest from Git index
3. Observe the failure

Attempting operation again will fail because the index is locked. 

-- Error Details --
Date: Mon Feb 07 20:04:51 CET 2011
Message: An internal error occurred during: "Discard Changes".
Severity: Error
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.rcp.product)
Plugin: org.eclipse.core.jobs
Exception Stack Trace:
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:1975)
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
*** Bug 336696 has been marked as a duplicate of this bug. ***
Comment 2 Matthias Sohn CLA 2011-02-28 11:06:25 EST
- which version of EGit are you using ?
- I just tried with current nightly version on a random test project and "Replace with > File in Git Index" worked for me
- could you retry with latest nightly from http://download.eclipse.org/egit/updates-nightly
Comment 3 Matthias Sohn CLA 2011-08-04 17:55:36 EDT

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