fixed bug related to removal of JS.call(JS[])
[org.ibex.js.git] / src / org / ibex / js / JSReflection.java
index 28a514e..4712d08 100644 (file)
@@ -45,7 +45,7 @@ public class JSReflection extends JS.Immutable {
         while(c != null) {
             try {
                 Field f = c.getField(k);
-                return wrap(f.get(this));
+                if (f != null) return wrap(f.get(this));
             } catch (NoSuchFieldException nfe) {
             } catch (IllegalAccessException nfe) {
             } catch (SecurityException nfe) { }