| Summary: | Internal error occurred when checkout branch | ||
|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | hotgoodway |
| Component: | Core | Assignee: | Matthias Sohn <matthias.sohn> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | CC: | jens.baumgart, matthias.sohn, paul, vlad |
| Version: | 0.11 | ||
| Target Milestone: | 1.2 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
hotgoodway
This is really strange. There seems to be a project with location null in your workspace:
45 String projectFilePath = p.getLocation()
46 .append(".project").toOSString(); //$NON-NLS-1$
Can you check the projects in your workspace? Execute "Properties" on the project node and check the location.
I have the same problem with any version of Eclipse or Egit. As long as I have I have a Remote Project in the same workspace, I get the same error as the reporter of this bug. The remote projects have the following pattern in Properties - Location: "rse://xxx.xxxx.COM/home/vlad" ______________________________________________________________________ !ENTRY org.eclipse.core.jobs 4 2 2011-06-29 19:29:07.322 !MESSAGE An internal error occurred during: "Checking out Puppet-VGH - refs/remotes/origin/master". !STACK 0 java.lang.NullPointerException at org.eclipse.egit.core.internal.util.ProjectUtil.getValidProjects(ProjectUtil.java:47) at org.eclipse.egit.core.op.BranchOperation$1.run(BranchOperation.java:76) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2326) at org.eclipse.egit.core.op.BranchOperation.execute(BranchOperation.java:103) at org.eclipse.egit.ui.internal.branch.BranchOperationUI$1.run(BranchOperationUI.java:162) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) ______________________________________________________________________ I get the same error (see below) if I have any projects that are closed in my workspace. Opening the projects back up solves the problem. At least until I close a project again. java.lang.NullPointerException at org.eclipse.egit.core.internal.util.ProjectUtil.getValidProjects(ProjectUtil.java:46) at org.eclipse.egit.core.op.BranchOperation$1.run(BranchOperation.java:98) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1957) at org.eclipse.egit.core.op.BranchOperation.execute(BranchOperation.java:125) at org.eclipse.egit.ui.internal.branch.BranchOperationUI$1.run(BranchOperationUI.java:106) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) pushed patch for review http://egit.eclipse.org/r/#change,4335 merged as e35bfac11a258776ab8596d3563aa07f5a053ac5 |