Skip to content

Commit

Permalink
Merge pull request #3 from synopsys-arc-oss/bugfix-npe-for-emty-tools…
Browse files Browse the repository at this point in the history
…list

Fixed bug with NPE in case of empty tools list (JENKINS-18481)
  • Loading branch information
oleg-nenashev committed Jul 7, 2013
2 parents a27cb1f + 0d79964 commit a4c8d00
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -74,7 +74,7 @@ public CustomTool toCustomTool() {

@DataBoundConstructor
public CustomToolInstallWrapper(SelectedTool[] selectedTools) {
this.selectedTools = selectedTools;
this.selectedTools = (selectedTools != null) ? selectedTools : new SelectedTool[0];
}

@Override
Expand Down

0 comments on commit a4c8d00

Please sign in to comment.