Skip to content

Commit 92f36c4

Browse files
pjfanningfrantuma
authored andcommitted
fix handling for case where type.getType() is null
1 parent 4d8873c commit 92f36c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

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

27-
if (type == null || type.getType() == null) {
27+
if (type == null) {
2828
return type;
29+
} else if (type.getType() == null) {
30+
return null;
2931
}
3032
try {
3133
final JavaType jtype;

0 commit comments

Comments
 (0)