Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337522

Summary: NullPointerException when cloning an empty bare repository
Product: [Technology] EGit Reporter: Kay Huber <quorg.xtn>
Component: CoreAssignee: Stefan Lay <stefan.lay>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: caniszczyk, stefan.lay
Version: 0.11   
Target Milestone: 0.12-M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Kay Huber CLA 2011-02-18 03:13:10 EST
Using Eclipse Helios 3.6.1, M20100909-0800 with egit/jgit 0.11.1

For testing egit / playing around with it, I started by creating an empty bare repository and then tried to clone it. Doing so caused a NullPointerException:

java.lang.NullPointerException
at org.eclipse.egit.core.op.CloneOperation.doInit(CloneOperation.java:177)
at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:134)
at org.eclipse.egit.ui.internal.clone.GitCloneWizard.executeCloneOperation(GitCloneWizard.java:259)
at org.eclipse.egit.ui.internal.clone.GitCloneWizard.access$3(GitCloneWizard.java:252)
at org.eclipse.egit.ui.internal.clone.GitCloneWizard$4.run(GitCloneWizard.java:233)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Chris Aniszczyk CLA 2011-03-02 10:29:18 EST
Fixed in master.