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

Bug 370134

Summary: NPE when rebasing from within EGit
Product: [Technology] JGit Reporter: Markus Duft <markus.duft>
Component: JGitAssignee: Project Inbox <jgit.core-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: matthias.sohn
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Markus Duft CLA 2012-01-30 10:11:34 EST
Build Identifier: 

seems like a bug in JGit - it was reported by a co worker, and unfortunately i don't have a jgit version available :(

java.lang.NullPointerException
                at org.eclipse.jgit.dircache.DirCacheCheckout.processEntry(DirCacheCheckout.java:682)
                at org.eclipse.jgit.dircache.DirCacheCheckout.preScanTwoTrees(DirCacheCheckout.java:246)
                at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:395)
                at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:381)
                at org.eclipse.jgit.api.RebaseCommand.checkoutCommit(RebaseCommand.java:799)
                at org.eclipse.jgit.api.RebaseCommand.initFilesAndRewind(RebaseCommand.java:613)
                at org.eclipse.jgit.api.RebaseCommand.call(RebaseCommand.java:214)
                at org.eclipse.egit.core.op.RebaseOperation$1.run(RebaseOperation.java:100)
                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.RebaseOperation.execute(RebaseOperation.java:119)
                at org.eclipse.egit.ui.internal.rebase.RebaseHelper$1.run(RebaseHelper.java:58)
                at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Reproducible: Always

Steps to Reproduce:
1. rebase a branch with a single (BIG!) commit.
Comment 1 Kevin Sawicki CLA 2012-03-02 15:31:33 EST
What version was this on?
Comment 2 Kevin Sawicki CLA 2012-03-02 15:32:02 EST
Sorry, just saw that you already mentioned not having that information.
Comment 3 Matthias Sohn CLA 2013-04-15 19:05:55 EDT
I looked at the source versions around the date this problem was reported and couldn't find a reason which could cause this NPE. Without version information I don't see how to reproduce this, hence closing this bug.