Fix possible NPE introduced in recent changes to MethodLifecycleCallbacks.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505052 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
A. Abram White 2007-02-08 22:12:06 +00:00
parent a2be03e9cb
commit 0a072b8a50
1 changed files with 2 additions and 2 deletions

View File

@ -118,8 +118,8 @@ public class MethodLifecycleCallbacks
* from the corresponding parameters of the to array.
*/
private static boolean isAssignable(Class[] from, Class[] to) {
if (from == null)
return to == null;
if (from == null || to == null)
return to == from;
if (from.length != to.length)
return false;