Skip to content

Commit

Permalink
[FIXED JENKINS-13368] Added one more level of null pointer checking for
Browse files Browse the repository at this point in the history
new code.
  • Loading branch information
David Tanner committed Oct 26, 2012
1 parent f160f6f commit 7a302e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/git/GitAPI.java
Expand Up @@ -393,7 +393,7 @@ public List<String> showRevision(Revision r, BuildData buildData) throws GitExce
String revName = "";


if (buildData != null){
if (buildData != null && buildData.lastBuild != null){
revName = buildData.lastBuild.revision.getSha1String() + ".." + r.getSha1String();
writer.write(launchCommand("show", "--no-abbrev", "--format=raw", "-M", "--raw", revName));
writer.write("\\n");
Expand Down

0 comments on commit 7a302e7

Please sign in to comment.