Issue #5 resolved

Fix NullPointerException when executing on remote agents.

Steffen Opel
created an issue

This has been exposed by resolving #4 (see pull request #7) and is triggered by a call to substituteString(), which applies to all current tasks though, e.g.:

java.lang.NullPointerException
    at com.atlassian.bamboo.variable.CustomVariableContextImpl.substituteString(CustomVariableContextImpl.java:128)
    at net.utoolity.bamboo.plugins.CloudFormationTask.execute(CloudFormationTask.java:105)
    at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:180)
    at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:93)
    at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87)
    at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:206)
    at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103)
    at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:111)
    at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)
    at java.lang.Thread.run(Thread.java:662)

Comments (3)

  1. Log in to comment