Community
Participate
Working Groups
Hello when I first checkout branch it occurred the problem. my Eclipse Build id is 20110301-1815 and EGit version is 0.11.3 error detail: An internal error occurred during: "Checking out refs/heads/first-iteration2". 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) Session Data: eclipse.buildId=M20110210-1200 java.version=1.6.0_11 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ja_JP Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
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