fix: swagger3 空指针

This commit is contained in:
chenjianxing 2021-01-06 17:10:42 +08:00
parent 1566f8c79b
commit 625085c0a6
1 changed files with 3 additions and 0 deletions

View File

@ -333,6 +333,9 @@ public class Swagger3Parser extends SwaggerAbstractParser {
}
private Object parseSchemaProperties(Schema schema, Set<String> refSet, Map<String, Schema> infoMap) {
if (schema == null) {
return null;
}
Map<String, Schema> properties = schema.getProperties();
if (MapUtils.isEmpty(properties)) {
return null;