KiwiReflection#newInstanceExactParamTypes should permit null arguments #856
Labels
enhancement
A request for change or improvement to an existing feature
Milestone
KiwiReflection#newInstanceExactParamTypes
usesList.of
to wrap the varargs into aList
, but this will throw a NPE if any argument isnull
:kiwi/src/main/java/org/kiwiproject/reflect/KiwiReflection.java
Line 797 in dbbce51
In this method,
null
arguments are OK, because we have the exact parameter types and therefore do not need to infer the types, as we do innewInstanceInferringParamTypes
.So, the
List
creation needs to permitnull
values.The text was updated successfully, but these errors were encountered: