Skip to content

Commit 01d59e4

Browse files
committed
NullPointerException on JavadocPropertyCustomizer.java:81 - Warning level. Fixes #1370.
1 parent 28f6190 commit 01d59e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

springdoc-openapi-javadoc/src/main/java/org/springdoc/openapi/javadoc/JavadocPropertyCustomizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public Schema resolve(AnnotatedType type, ModelConverterContext context, Iterato
7878
Schema existingSchema = context.resolve(type);
7979
setJavadocDescription(fields, existingSchema);
8080
}
81-
else if (resolvedSchema.get$ref() != null && resolvedSchema.get$ref().contains(AnnotationsUtils.COMPONENTS_REF)) {
81+
else if (resolvedSchema != null && resolvedSchema.get$ref() != null && resolvedSchema.get$ref().contains(AnnotationsUtils.COMPONENTS_REF)) {
8282
String schemaName = resolvedSchema.get$ref().substring(21);
8383
Schema existingSchema = context.getDefinedModels().get(schemaName);
8484
setJavadocDescription(fields, existingSchema);

0 commit comments

Comments
 (0)