Skip to content

Commit

Permalink
Merge pull request #12202 from dulithsenanayake/fix-product-creation-…
Browse files Browse the repository at this point in the history
…failure

Add null check for references
  • Loading branch information
dulithsenanayake authored Dec 14, 2023
2 parents 69ad199 + 497ad85 commit 42814ec
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,9 @@ private static void extractReferenceFromSchema(Schema schema, SwaggerUpdateConte
addToReferenceObjectMap(ref, context);
} else if (!references.isEmpty() && references.size() != 0) {
for (String reference : references) {
addToReferenceObjectMap(reference, context);
if (reference != null) {
addToReferenceObjectMap(reference, context);
}
}
}

Expand Down

0 comments on commit 42814ec

Please sign in to comment.