From bcad89dc17b7dc8ef598778307944dac9e027a9e Mon Sep 17 00:00:00 2001 From: Josh warner Date: Fri, 5 Jun 2009 14:28:55 -0600 Subject: [PATCH] handle null parameter types in various class methods --- classpath/java/lang/Class.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classpath/java/lang/Class.java b/classpath/java/lang/Class.java index 2d907f064b..1a18b60fe8 100644 --- a/classpath/java/lang/Class.java +++ b/classpath/java/lang/Class.java @@ -168,6 +168,8 @@ public final class Class { 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()))