This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE 7.3 (Build 201302062200) VM: Java HotSpot(TM) 64-Bit Server VM, 20.13-b02, Java(TM) SE Runtime Environment, 1.6.0_38-b05 OS: Windows 7 User Comments: cunneen: Trying to pull a git respository from bitbucket.org sheershoff: pulling from remote ssh medeag: checking out revision git Stacktrace: 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.netbeans.libs.git.jgit.commands.CheckoutRevisionCommand.run(CheckoutRevisionCommand.java:111) at org.netbeans.libs.git.jgit.commands.GitCommand.execute(GitCommand.java:73)
Created attachment 131595 [details] stacktrace
Is it reproducible? There must be something unusual about your setups. Maybe the remote repository has no HEAD yet (no commit has been pushed to the repo) or your local repository is fresh new and has no revision checked out yet? Please provide as much information as possible.
(In reply to comment #2) > Is it reproducible? > There must be something unusual about your setups. Maybe the remote repository > has no HEAD yet (no commit has been pushed to the repo) or your local > repository is fresh new and has no revision checked out yet? Please provide as > much information as possible. This was months ago. There was nothing unusual about my setup. Normal install. I abandoned Netbeans 7.3 due to this issue. I'm back on 7.2.1 .
As far as I remember - merging with "Git extensions" helped and everything was ok after it. I know that sometimes netbeans is unable to do pulls, so I have Git extensions for that case. If the problem emerges again I'll give details if it will not disclose sensitive information.
I'm really new to git(only one week with it) my setup is ok but i'm not sure if i have done something wrong. I was trying to checkout older revision since head contained unwanted changes, can't reproduce this now...
cunneen, sheershoff: your problem should be already fixed in the 7.3 final: it's a dupl. of bug #219648 i think. medea: do you remember if you were on a branch at the time you did the checkout (was the branch name displayed next to a project name)? And how did you do the checkout? Using Git -> Checkout -> Revision, or Git -> Branch -> Switch to branch?
Was able to reproduce: 1) have a commit C1 that contains a file A 2) have a commit C2 where the file A is not present (was deleted in the commit) 3) checkout commit C1 4) delete the file just in the index (by running 'git rm --cached A') 5) now checkout C2
seems to be already fixed in JGit: http://git.eclipse.org/c/jgit/jgit.git/commit/org.eclipse.jgit/src/org/eclipse/jgit/dircache?id=0fb0e8440507e3e969432ea1115b806e5e04138c We should consider upgrading.
JGit upgraded to 2.3.1, i consider this as fixed