JSReflection now handles null properly
authoradam <adam@megacz.com>
Tue, 29 Jun 2004 02:22:59 +0000 (02:22 +0000)
committeradam <adam@megacz.com>
Tue, 29 Jun 2004 02:22:59 +0000 (02:22 +0000)
darcs-hash:20040629022259-5007d-8e5fe8788d45dbec907c67365b92b7cdd9151efc.gz

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;