TypeDescriptor's nested type traversal leniently returns null in case of unresolvable nested type
Issue: SPR-11898
This commit is contained in:
@@ -701,8 +701,7 @@ public class TypeDescriptor implements Serializable {
|
||||
}
|
||||
}
|
||||
if (nested == ResolvableType.NONE) {
|
||||
throw new IllegalStateException(
|
||||
"Unable to obtain nested generic from " + typeDescriptor + " at level " + nestingLevel);
|
||||
return null;
|
||||
}
|
||||
return getRelatedIfResolvable(typeDescriptor, nested);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user