Skip to content

Commit

Permalink
Fixed #201
Browse files Browse the repository at this point in the history
  • Loading branch information
hypfvieh committed Jan 11, 2023
1 parent 6d1d97e commit 32ed78c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,10 @@ private static class CachedConstructor {
}

public boolean matchesParameters(List<Class<?>> _wantedArgs) {
if (parameterTypes != null && _wantedArgs == null) {
if (parameterTypes == null || _wantedArgs == null) {
return false;
}

if (parameterTypes.size() != _wantedArgs.size()) {
return false;
}
Expand Down

0 comments on commit 32ed78c

Please sign in to comment.