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

Bug 335101

Summary: NPE during fetch
Product: [Technology] JGit Reporter: Andrew Gvozdev <angvoz.dev>
Component: JGitAssignee: Project Inbox <jgit.core-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: matthias.sohn
Version: 0.11   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Andrew Gvozdev CLA 2011-01-23 00:28:40 EST
Eclipse EGit (Incubation)	0.11.0.201101211514	org.eclipse.egit.feature.group
  Eclipse JGit (Incubation)	0.11.0.201101211040	org.eclipse.jgit.feature.group

I configured fetch and push to GitHub with ssh. While push is working fine, I cannot fetch:

java.lang.NullPointerException
at org.eclipse.jgit.lib.ObjectIdSubclassMap.index(ObjectIdSubclassMap.java:172)
at org.eclipse.jgit.lib.ObjectIdSubclassMap.get(ObjectIdSubclassMap.java:89)
at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:809)
at org.eclipse.jgit.transport.FetchProcess.askForIsComplete(FetchProcess.java:313)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:148)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:111)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:903)
at org.eclipse.egit.ui.internal.fetch.FetchConfiguredRemoteAction$1.run(FetchConfiguredRemoteAction.java:105)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Matthias Sohn CLA 2012-04-19 03:22:35 EDT
Neither current 2.0.0-SNAPSHOT nor 0.11.3 can throw an NPE at org.eclipse.jgit.lib.ObjectIdSubclassMap.index(ObjectIdSubclassMap.java:172) 

Please reopen if you can reproduce this in a current version