openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r505052 - /incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/MethodLifecycleCallbacks.java
Date Thu, 08 Feb 2007 22:12:07 GMT
Author: awhite
Date: Thu Feb  8 14:12:06 2007
New Revision: 505052

URL: http://svn.apache.org/viewvc?view=rev&rev=505052
Log:
Fix possible NPE introduced in recent changes to MethodLifecycleCallbacks.


Modified:
    incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/MethodLifecycleCallbacks.java

Modified: incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/MethodLifecycleCallbacks.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/MethodLifecycleCallbacks.java?view=diff&rev=505052&r1=505051&r2=505052
==============================================================================
--- incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/MethodLifecycleCallbacks.java
(original)
+++ incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/MethodLifecycleCallbacks.java
Thu Feb  8 14:12:06 2007
@@ -118,8 +118,8 @@
      * 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;



Mime
View raw message