--- old/src/jdk/nashorn/internal/codegen/CodeGenerator.java 2014-08-04 21:19:13.761268583 +0530 +++ new/src/jdk/nashorn/internal/codegen/CodeGenerator.java 2014-08-04 21:19:13.577267663 +0530 @@ -4742,7 +4742,7 @@ */ private void replaceCompileTimeProperty(final Object propertyValue) { assert method.peekType().isObject(); - if(propertyValue instanceof String) { + if(propertyValue instanceof String || propertyValue == null) { method.load((String)propertyValue); } else if(propertyValue instanceof Integer) { method.load(((Integer)propertyValue).intValue());