Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions bin/generate-samples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,5 @@ fi

if [[ -n "$GENERATE_ERROR" ]]; then
echo "Found exception(s) when running the generator(s) to update the samples."
# UNCOMMENT LATER
#exit 1
exit 1
fi
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ protected boolean isSelfReference(String name, Schema subSchema) {
*/
public Schema normalizeSchema(Schema schema, Set<Schema> visitedSchemas) {
// normalize reference schema
if (StringUtils.isNotEmpty(schema.get$ref())) {
if (schema != null && StringUtils.isNotEmpty(schema.get$ref())) {
normalizeReferenceSchema(schema);
}

Expand Down
Loading