fixed NPE later down the road

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19473 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-07-07 18:36:09 +00:00
1 parent a31176489c
commit 4ac8e27562
2 files changed
+6 -2

No files matched your search

@@ -123,7 +123,9 @@ public final class MavenModuleSetBuild extends AbstractBuild<MavenModuleSet,Mave
@Override
public EnvVars getEnvironment(TaskListener log) throws IOException, InterruptedException {
EnvVars envs = super.getEnvironment(log);
envs.put("MAVEN_OPTS",project.getMavenOpts());
String opts = project.getMavenOpts();
if(opts!=null)
envs.put("MAVEN_OPTS", opts);
return envs;
}