fix JSReflection bug relating to fields in a superclass
authoradam <adam@megacz.com>
Tue, 11 Jan 2005 08:11:58 +0000 (08:11 +0000)
committeradam <adam@megacz.com>
Tue, 11 Jan 2005 08:11:58 +0000 (08:11 +0000)
darcs-hash:20050111081158-5007d-5a342b9f118b405c84464ae777e6b41dec98123b.gz

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) { }