Community
Participate
Working Groups
(This happens with 0.7.1; yet unavailable in version picker) When I try to clone an existing repository I get a NullPointerException somewhere late in the process: java.lang.reflect.InvocationTargetException at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:130) at org.eclipse.egit.ui.internal.clone.GitCloneWizard$3.run(GitCloneWizard.java:174) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: java.lang.NullPointerException at org.eclipse.jgit.lib.GitIndex$Entry.<init>(GitIndex.java:424) at org.eclipse.jgit.lib.GitIndex.addEntry(GitIndex.java:818) at org.eclipse.jgit.lib.WorkDirCheckout$1.visitEntry(WorkDirCheckout.java:181) at org.eclipse.jgit.lib.IndexTreeWalker.finishVisitTree(IndexTreeWalker.java:198) at org.eclipse.jgit.lib.IndexTreeWalker.walk(IndexTreeWalker.java:135) at org.eclipse.jgit.lib.IndexTreeWalker.walk(IndexTreeWalker.java:113) at org.eclipse.jgit.lib.WorkDirCheckout.checkoutOutIndexNoHead(WorkDirCheckout.java:165) at org.eclipse.jgit.lib.WorkDirCheckout.checkout(WorkDirCheckout.java:142) at org.eclipse.egit.core.op.CloneOperation.doCheckout(CloneOperation.java:225) at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:121) ... 2 more Root exception: java.lang.NullPointerException at org.eclipse.jgit.lib.GitIndex$Entry.<init>(GitIndex.java:424) at org.eclipse.jgit.lib.GitIndex.addEntry(GitIndex.java:818) at org.eclipse.jgit.lib.WorkDirCheckout$1.visitEntry(WorkDirCheckout.java:181) at org.eclipse.jgit.lib.IndexTreeWalker.finishVisitTree(IndexTreeWalker.java:198) at org.eclipse.jgit.lib.IndexTreeWalker.walk(IndexTreeWalker.java:135) at org.eclipse.jgit.lib.IndexTreeWalker.walk(IndexTreeWalker.java:113) at org.eclipse.jgit.lib.WorkDirCheckout.checkoutOutIndexNoHead(WorkDirCheckout.java:165) at org.eclipse.jgit.lib.WorkDirCheckout.checkout(WorkDirCheckout.java:142) at org.eclipse.egit.core.op.CloneOperation.doCheckout(CloneOperation.java:225) at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:121) at org.eclipse.egit.ui.internal.clone.GitCloneWizard$3.run(GitCloneWizard.java:174) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Detail: I try to clone a repo that holds a single project. It is a nonbare repo (the bare ones are out of reach w/o ssh & ProxyCommand). Access is via file:/// url, and the repo has submodules defined. I suspect the latter to be the cause. (I would not mind if the submodule is simply ignored.) Session data: eclipse.buildId=M20090917-0800 java.version=1.5.0_22 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/andreaskrey/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.java.product -keyring /Users/andreaskrey/.eclipse_keyring -showlocation
JGit currently doesn't work properly with submodules, see bug 300731.
*** This bug has been marked as a duplicate of bug 314853 ***