Skip to content

Commit eb8e570

Browse files
committed
Types: fix NPE in isAssignable method
1 parent d99dcad commit eb8e570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/util/Types.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ private static boolean isAssignable(final Type type,
14161416
// parameters must either be absent from the subject type, within
14171417
// the bounds of the wildcard type, or be an exact match to the
14181418
// parameters of the target type.
1419-
if (fromTypeArg != null && !toTypeArg.equals(fromTypeArg) &&
1419+
if (fromTypeArg != null && !fromTypeArg.equals(toTypeArg) &&
14201420
!(toTypeArg instanceof WildcardType && isAssignable(fromTypeArg,
14211421
toTypeArg, typeVarAssigns)))
14221422
{

0 commit comments

Comments
 (0)