Skip to content

Commit

Permalink
[JENKINS-17318] Addressed NullPointerException generated in FitnesseB…
Browse files Browse the repository at this point in the history
…uilder when the EnvironmentVariablesNodeProperty was null.
  • Loading branch information
lessonz committed Mar 23, 2013
1 parent 006aaf6 commit 1786f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/fitnesse/FitnesseBuilder.java
Expand Up @@ -91,7 +91,7 @@ public String getFitnesseHost() {
public String getFitnesseHost(AbstractBuild<?,?> build) throws InterruptedException, IOException {
if (getFitnesseStart()){
EnvironmentVariablesNodeProperty prop = build.getBuiltOn().getNodeProperties().get(EnvironmentVariablesNodeProperty.class);
if (prop.getEnvVars()!=null && prop.getEnvVars().get(_HOSTNAME_SLAVE_PROPERTY)!=null){
if (prop!=null && prop.getEnvVars()!=null && prop.getEnvVars().get(_HOSTNAME_SLAVE_PROPERTY)!=null){
return prop.getEnvVars().get(_HOSTNAME_SLAVE_PROPERTY);
} else {
return _LOCALHOST;
Expand Down

0 comments on commit 1786f58

Please sign in to comment.