Skip to content

Commit

Permalink
Fix NPE issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lnash94 committed Apr 30, 2024
1 parent 3a5d5d7 commit 6a473c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ private ImmutablePair<List<Node>, List<Schema<?>>> generateAllOfRecordFields(Lis
typeRef, createToken(SEMICOLON_TOKEN));
// check whether given reference schema has additional fields.
OpenAPI openAPI = GeneratorMetaData.getInstance().getOpenAPI();
Schema<?> refSchema = openAPI.getComponents().getSchemas().get(modifiedSchemaName);
Schema<?> refSchema = openAPI.getComponents().getSchemas().get(extractedSchemaName);
addAdditionalSchemas(refSchema);

if (!pregeneratedTypeMap.containsKey(modifiedSchemaName)) {
Expand Down

0 comments on commit 6a473c5

Please sign in to comment.