forked from loafle/openapi-generator-original
fixed NPE on empty props
This commit is contained in:
parent
adeff7855c
commit
91afec43a6
@ -131,7 +131,12 @@ public class CodeGenMojo extends AbstractMojo {
|
||||
|
||||
if (environmentVariables != null) {
|
||||
for(String key : environmentVariables.keySet()) {
|
||||
System.setProperty(key, environmentVariables.get(key));
|
||||
String value = environmentVariables.get(key);
|
||||
if(value == null) {
|
||||
// don't put null values
|
||||
value = "";
|
||||
}
|
||||
System.setProperty(key, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user