mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
handle null parameter types in various class methods
This commit is contained in:
parent
ed4c24c7f6
commit
bcad89dc17
@ -168,6 +168,8 @@ public final class Class <T> {
|
||||
|
||||
private Method findMethod(String name, Class[] parameterTypes) {
|
||||
if (methodTable != null) {
|
||||
if (parameterTypes == null)
|
||||
parameterTypes = new Class[0];
|
||||
for (int i = 0; i < methodTable.length; ++i) {
|
||||
if (methodTable[i].getName().equals(name)
|
||||
&& match(parameterTypes, methodTable[i].getParameterTypes()))
|
||||
|
Loading…
Reference in New Issue
Block a user