Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
NPE fix
  • Loading branch information
alexsuperdev committed Mar 24, 2020
1 parent a811330 commit 299cdb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ public void preprocessOpenAPI(OpenAPI openAPI) {
String nOneOf = toModelName(n + "OneOf");
if (ModelUtils.isComposedSchema(s)) {
addOneOfNameExtension((ComposedSchema) s, n);
if (useOneOfInterfaces && templateDir.equals("JavaSpring")){
if (useOneOfInterfaces && "JavaSpring".equals(templateDir)){
addOneOfInterfaceModel((ComposedSchema) s, nOneOf);
}
} else if (ModelUtils.isArraySchema(s)) {
Expand Down

0 comments on commit 299cdb3

Please sign in to comment.