Skip to content

Commit

Permalink
new ReferenceRtpeUtils code fails with NPE with type.getType() is null
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored and frantuma committed Nov 7, 2022
1 parent 954f02a commit 4d8873c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static boolean _isReferenceType(JavaType jtype) {
*/
public static AnnotatedType unwrapReference(AnnotatedType type) {

if (type == null) {
if (type == null || type.getType() == null) {
return type;
}
try {
Expand Down

0 comments on commit 4d8873c

Please sign in to comment.