Skip to content

Commit

Permalink
fix handling for case where type.getType() is null
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored and frantuma committed Nov 8, 2022
1 parent 4d8873c commit 92f36c4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ public static boolean _isReferenceType(JavaType jtype) {
*/
public static AnnotatedType unwrapReference(AnnotatedType type) {

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

0 comments on commit 92f36c4

Please sign in to comment.