mirror of https://github.com/apache/openjpa.git
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:
parent
a2be03e9cb
commit
0a072b8a50
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue