From: adam Date: Tue, 29 Jun 2004 02:22:59 +0000 (+0000) Subject: JSReflection now handles null properly X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=fa9b8e4a4f4dcec7f79b3e9329a62cbb555bda4d JSReflection now handles null properly darcs-hash:20040629022259-5007d-8e5fe8788d45dbec907c67365b92b7cdd9151efc.gz --- diff --git a/src/org/ibex/js/JSReflection.java b/src/org/ibex/js/JSReflection.java index 070a35b..69fb9b3 100644 --- a/src/org/ibex/js/JSReflection.java +++ b/src/org/ibex/js/JSReflection.java @@ -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;