Skip to content

Commit

Permalink
Merge pull request #1406 from swagger-api/NPE_flatten
Browse files Browse the repository at this point in the history
fix NPE in V3 Parser
  • Loading branch information
frantuma authored Jul 28, 2020
2 parents 6a6760a + 0fd3e01 commit 8f25c7c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ private SwaggerParseResult resolve(SwaggerParseResult result, List<Authorization
final InlineModelResolver inlineModelResolver =
new InlineModelResolver(options.isFlattenComposedSchemas(),
options.isCamelCaseFlattenNaming(), options.isSkipMatches());
inlineModelResolver.flatten(result.getOpenAPI());
if (result.getOpenAPI()!= null) {
inlineModelResolver.flatten(result.getOpenAPI());
}
}
}
} catch (Exception e) {
Expand Down

0 comments on commit 8f25c7c

Please sign in to comment.