We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adeff78 commit 91afec4Copy full SHA for 91afec4
modules/swagger-codegen-maven-plugin/src/main/java/io/swagger/codegen/plugin/CodeGenMojo.java
@@ -131,7 +131,12 @@ public void execute() throws MojoExecutionException {
131
132
if (environmentVariables != null) {
133
for(String key : environmentVariables.keySet()) {
134
- System.setProperty(key, environmentVariables.get(key));
+ String value = environmentVariables.get(key);
135
+ if(value == null) {
136
+ // don't put null values
137
+ value = "";
138
+ }
139
+ System.setProperty(key, value);
140
}
141
142
0 commit comments