Skip to content

Commit 3231c0f

Browse files
committed
4.0.6 - OpenAPI plugin throws Cannot invoke "String.hashCode()" because "<local2>" is null fix #3772
1 parent 786fece commit 3231c0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/jooby-gradle-plugin/src/main/java/io/jooby/gradle/OpenAPITask.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ public void generate() throws Throwable {
6969
tool.setClassLoader(classLoader);
7070
tool.setOutputDir(outputDir);
7171
tool.setSources(sources);
72-
tool.setSpecVersion(specVersion);
72+
if (specVersion != null) {
73+
tool.setSpecVersion(specVersion);
74+
}
7375
trim(includes).ifPresent(tool::setIncludes);
7476
trim(excludes).ifPresent(tool::setExcludes);
7577

0 commit comments

Comments
 (0)