jakarta-bsf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r758412 - /jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/SimpleBindings.java
Date Wed, 25 Mar 2009 19:08:19 GMT
Author: sebb
Date: Wed Mar 25 19:08:09 2009
New Revision: 758412

URL: http://svn.apache.org/viewvc?rev=758412&view=rev
Log:
Another null check needed

Modified:
    jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/SimpleBindings.java

Modified: jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/SimpleBindings.java
URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/SimpleBindings.java?rev=758412&r1=758411&r2=758412&view=diff
==============================================================================
--- jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/SimpleBindings.java (original)
+++ jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/SimpleBindings.java Wed Mar
25 19:08:09 2009
@@ -48,8 +48,12 @@
      * 
      * @param map a map which is used to initialize the 
      *            SimpleBindings
+     * @throws NullPointerException if the map is null
      */
     public SimpleBindings(Map map){
+        if (map == null){
+            throw new NullPointerException("parameter must not be null");
+        }
         this.map = map;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-dev-help@jakarta.apache.org


Mime
View raw message