Skip to content

Commit f4ebec2

Browse files
committed
Types: fix NPE in isAssignable method
1 parent b600684 commit f4ebec2

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
@@ -1412,7 +1412,7 @@ private static boolean isAssignable(final Type type,
14121412
// parameters must either be absent from the subject type, within
14131413
// the bounds of the wildcard type, or be an exact match to the
14141414
// parameters of the target type.
1415-
if (fromTypeArg != null && !toTypeArg.equals(fromTypeArg) &&
1415+
if (fromTypeArg != null && !fromTypeArg.equals(toTypeArg) &&
14161416
!(toTypeArg instanceof WildcardType && isAssignable(fromTypeArg,
14171417
toTypeArg, typeVarAssigns)))
14181418
{

0 commit comments

Comments
 (0)