mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
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:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user