Skip to content

Commit

Permalink
Merge pull request #1700 from lnash94/fixes
Browse files Browse the repository at this point in the history
[master]Fix NPE issue in client code generation in GitHub connector
  • Loading branch information
lnash94 authored Apr 30, 2024
2 parents 3a5d5d7 + 6a473c5 commit 4063adb
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 4063adb

Please sign in to comment.