Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315137 - "Reset" operation fails with error message and NullPointerException in the logs
Summary: "Reset" operation fails with error message and NullPointerException in the logs
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 0.8.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 0.9.0-M2   Edit
Assignee: Jens Baumgart CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-31 16:12 EDT by Kay Huber CLA
Modified: 2010-08-30 12:11 EDT (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 Kay Huber CLA 2010-05-31 16:12:11 EDT
Referring to latest nightlies of both EGit (0.8.0.201005300830) and JGit (0.8.0.201005300828).

When doing "Reset..." on a project, selecting default "master" branch and Reset Type "Hard" fails with an error popup and a stack trace in the logs.
However, workspace is fine and operation seems to be executed perfectly well.

Stacktrace:

java.lang.NullPointerException
at org.eclipse.egit.core.internal.util.ProjectUtil.refreshProjects(ProjectUtil.java:44)
at org.eclipse.egit.core.op.ResetOperation.reset(ResetOperation.java:148)
at org.eclipse.egit.core.op.ResetOperation.access$0(ResetOperation.java:115)
at org.eclipse.egit.core.op.ResetOperation$1.run(ResetOperation.java:105)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782)
at org.eclipse.egit.core.op.ResetOperation.execute(ResetOperation.java:109)
at org.eclipse.egit.ui.internal.actions.ResetAction$1.run(ResetAction.java:58)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Jens Baumgart CLA 2010-08-30 12:11:00 EDT
Fixed with a2ade7f6fdaffc8bf698480d0fe4f341d1248787.