Skip to content

Avoid NPE as discussed in #57 - #182

Merged
TheSnoozer merged 2 commits into
git-commit-id:masterfrom
TheSnoozer:master
Apr 9, 2015
Merged

TheSnoozer merged 2 commits into
git-commit-id:masterfrom
TheSnoozer:master

Conversation

@TheSnoozer

Copy link
Copy Markdown
Collaborator

revWalk.parseCommit will throw a NPE when Argument is null.

Caused by: java.lang.NullPointerException
    at org.eclipse.jgit.lib.ObjectIdOwnerMap.get(ObjectIdOwnerMap.java:131)
    at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:838)
    at org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:753)
    at pl.project13.maven.git.JGitProvider.prepareGitToExtractMoreDetailedReproInformation(JGitProvider.java:91)
    ... 26 more

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you have

@ktoso

ktoso commented Apr 9, 2015

Copy link
Copy Markdown
Collaborator

Good one, LGTM, I'd reword the msg though :-)

@TheSnoozer

Copy link
Copy Markdown
Collaborator Author

Changed to "you have". Just copied and pasted from the other message by the way ;)

@ktoso

ktoso commented Apr 9, 2015

Copy link
Copy Markdown
Collaborator

oh ok, thanks :) let's merge

TheSnoozer pushed a commit that referenced this pull request Apr 9, 2015
Avoid NPE as discussed in #57
@TheSnoozer
TheSnoozer merged commit bf4adb6 into git-commit-id:master Apr 9, 2015
@TheSnoozer TheSnoozer added this to the 2.1.14 milestone Apr 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants