Community
Participate
Working Groups
Build Identifier: I have a method that simply walks through the RevCommits in a repo. For each commit, I call the getAuthorIdent() method. In some cases it throws a NPE: Caused by: java.lang.NullPointerException at org.eclipse.jgit.util.RawParseUtils.author(RawParseUtils.java:560) at org.eclipse.jgit.revwalk.RevCommit.getAuthorIdent(RevCommit.java:338) Reproducible: Always
I executed git show and git cat-file on a commit that causes exception: E:\without-fork>git show 40e3d63c8857d2dd386dc23b73bfa95e2245a813 commit 40e3d63c8857d2dd386dc23b73bfa95e2245a813 Author: akostajti <akos.tajti@intland.com> Date: Tue May 31 15:22:11 2011 +0200 fourth commit diff --git a/root.txt b/root.txt new file mode 100644 index 0000000..39af58f --- /dev/null +++ b/root.txt @@ -0,0 +1 @@ +root filr^M E:\without-fork>git cat-file commit 40e3d63c8857d2dd386dc23b73bfa95e2245a813 tree a463d3c682fcfbaa43f94b48a72d433d2745ef59 parent ce554b9b7b58c4eedb7f537ec484909264ad56c1 author akostajti <akos.tajti@intland.com> 1306848131 +0200 committer akostajti <akos.tajti@intland.com> 1306848131 +0200 fourth commit
Looks like this causes bug 358869 in EGit.
*** This bug has been marked as a duplicate of bug 358869 ***