JSReflection now handles null properly
[org.ibex.core.git] / src / org / ibex / js / JSReflection.java
index 070a35b..69fb9b3 100644 (file)
@@ -10,6 +10,7 @@ import java.lang.reflect.*;
 public class JSReflection extends JS {
 
     public static Object wrap(Object o) throws JSExn {
+        if (o == null) return null;
         if (o instanceof String) return o;
         if (o instanceof Boolean) return o;
         if (o instanceof Number) return o;