| Summary: | NPE in Git Reset Hard fails with added files that exists in index, but not on disk | ||
|---|---|---|---|
| Product: | [Technology] JGit | Reporter: | Robin Rosenberg <robin.rosenberg> |
| Component: | JGit | Assignee: | Project Inbox <jgit.core-inbox> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | christian.halstrick, daniel_megert, matthias.sohn, ob1.eclipse, remy.suen |
| Version: | 1.0 | ||
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
|
Description
Robin Rosenberg
Robin, tried hard to reproduce this on windows and linux. I even switched with jgit/egit to commits d203485/7bf4841 (which where in master 29.05.2011). But I can't reproduce this. Can you still reproduce this? (In reply to comment #1) > Robin, tried hard to reproduce this on windows and linux. I even switched with > jgit/egit to commits d203485/7bf4841 (which where in master 29.05.2011). But I > can't reproduce this. Can you still reproduce this? I still get an NPE, but not in the same location, strangely I'm not java.lang.NullPointerException at org.eclipse.egit.core.ContainerTreeIterator.<init>(ContainerTreeIterator.java:124) at org.eclipse.egit.core.ContainerTreeIterator.createSubtreeIterator(ContainerTreeIterator.java:132) at org.eclipse.jgit.treewalk.AbstractTreeIterator.createSubtreeIterator(AbstractTreeIterator.java:527) at org.eclipse.jgit.treewalk.TreeWalk.enterSubtree(TreeWalk.java:907) at org.eclipse.jgit.treewalk.TreeWalk.next(TreeWalk.java:566) at org.eclipse.jgit.lib.IndexDiff.diff(IndexDiff.java:281) at org.eclipse.egit.core.internal.indexdiff.IndexDiffCacheEntry.calcIndexDiff(IndexDiffCacheEntry.java:263) at org.eclipse.egit.core.internal.indexdiff.IndexDiffCacheEntry.access$2(IndexDiffCacheEntry.java:254) at org.eclipse.egit.core.internal.indexdiff.IndexDiffCacheEntry$3.run(IndexDiffCacheEntry.java:149) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) See http://egit.eclipse.org/r/#change,4357 for JUnit Demo *** Bug 350880 has been marked as a duplicate of this bug. *** Patch posted: http://egit.eclipse.org/r/#change,4358 merged as 2e43dcd6454d49d733d114a6c40ced05a3e93b8d Verified in 1.2.0.201110190928. |