Skip to content

Commit 4d8873c

Browse files
pjfanningfrantuma
authored andcommitted
new ReferenceRtpeUtils code fails with NPE with type.getType() is null
1 parent 954f02a commit 4d8873c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-core/src/main/java/io/swagger/v3/core/util/ReferenceTypeUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static boolean _isReferenceType(JavaType jtype) {
2424
*/
2525
public static AnnotatedType unwrapReference(AnnotatedType type) {
2626

27-
if (type == null) {
27+
if (type == null || type.getType() == null) {
2828
return type;
2929
}
3030
try {

0 commit comments

Comments
 (0)