You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mb...@apache.org on 2013/08/19 18:06:30 UTC

svn commit: r1515482 - /commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/invoker/RecordedInvocation.java

Author: mbenson
Date: Mon Aug 19 16:06:29 2013
New Revision: 1515482

URL: http://svn.apache.org/r1515482
Log:
matchers can fail at run time on empty arg arrays

Modified:
    commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/invoker/RecordedInvocation.java

Modified: commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/invoker/RecordedInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/invoker/RecordedInvocation.java?rev=1515482&r1=1515481&r2=1515482&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/invoker/RecordedInvocation.java (original)
+++ commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/invoker/RecordedInvocation.java Mon Aug 19 16:06:29 2013
@@ -49,7 +49,7 @@ public class RecordedInvocation
     public RecordedInvocation(Method invokedMethod, Object[] arguments)
     {
         this.invokedMethod = invokedMethod;
-        this.arguments = ArrayUtils.clone(arguments);
+        this.arguments = ArrayUtils.nullToEmpty(ArrayUtils.clone(arguments));
     }
 
 //----------------------------------------------------------------------------------------------------------------------