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 2008/06/10 17:53:46 UTC

svn commit: r666170 - /commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreRightFunction.java

Author: mbenson
Date: Tue Jun 10 08:53:45 2008
New Revision: 666170

URL: http://svn.apache.org/viewvc?rev=666170&view=rev
Log:
throw IllegalArgumentException on null constructor arg

Modified:
    commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreRightFunction.java

Modified: commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreRightFunction.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreRightFunction.java?rev=666170&r1=666169&r2=666170&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreRightFunction.java (original)
+++ commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/adapter/IgnoreRightFunction.java Tue Jun 10 08:53:45 2008
@@ -47,6 +47,9 @@
      * @param function UnaryFunction to wrap
      */
     public IgnoreRightFunction(UnaryFunction<? super L, ? extends T> function) {
+        if (function == null) {
+            throw new IllegalArgumentException("UnaryFunction argument was null");
+        }
         this.function = function;
     }