projects
/
org.ibex.js.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2999193
)
fix JSReflection bug relating to fields in a superclass
author
adam
<adam@megacz.com>
Tue, 11 Jan 2005 08:11:58 +0000
(08:11 +0000)
committer
adam
<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
patch
|
blob
|
history
diff --git
a/src/org/ibex/js/JSReflection.java
b/src/org/ibex/js/JSReflection.java
index
28a514e
..
4712d08
100644
(file)
--- a/
src/org/ibex/js/JSReflection.java
+++ b/
src/org/ibex/js/JSReflection.java
@@
-45,7
+45,7
@@
public class JSReflection extends JS.Immutable {
while(c != null) {
try {
Field f = c.getField(k);
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) { }
} catch (NoSuchFieldException nfe) {
} catch (IllegalAccessException nfe) {
} catch (SecurityException nfe) { }