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-unsubscr...@jakarta.apache.org For additional commands, e-mail: bsf-dev-h...@jakarta.apache.org