Improve table processing when table lookup fails.

This commit is contained in:
James Roseborough
2007-06-16 04:42:20 +00:00
parent a9c72414d1
commit 7449605d56

View File

@@ -21,7 +21,8 @@ public class LTable extends LValue {
} }
public LValue luaGetTable(LValue key) { public LValue luaGetTable(LValue key) {
return (LValue) m_hash.get( key ); Object o = m_hash.get(key);
return (o!=null? (LValue)o: LNil.NIL);
} }
public String luaAsString() { public String luaAsString() {