Skip to content

Commit

Permalink
Avoid NPE on plugin version update
Browse files Browse the repository at this point in the history
When upgrading from 1.3 to 1.4.x, this configuration key does not yet
exist, causing every XCode build to break. Added  a null check to avoid
this situation. [JENKINS-19886]
  • Loading branch information
vzsg committed Nov 5, 2013
1 parent b48316f commit 4724a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/au/com/rayh/XCodeBuilder.java
Expand Up @@ -486,7 +486,7 @@ public boolean perform(AbstractBuild build, Launcher launcher, BuildListener lis
}
commandLine.add("build");

if(generateArchive){
if(generateArchive != null && generateArchive){
commandLine.add("archive");
xcodeReport.append(", archive:YES");
}else{
Expand Down

0 comments on commit 4724a1c

Please sign in to comment.