Changeset 8917
- Timestamp:
- 05/09/08 10:59:48 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
helma-ng/trunk/src/org/helma/tools/HelmaShell.java
r8880 r8917 126 126 String[] parts = word.split("\\.", -1); 127 127 for (int k = 0; k < parts.length - 1; k++) { 128 obj = ScriptRuntime.toObject(scope, obj.get(parts[k], obj)); 129 128 Object o = ScriptableObject.getProperty(obj, parts[k]); 129 if (o == null || o == ScriptableObject.NOT_FOUND) { 130 return start; 131 } 132 obj = ScriptRuntime.toObject(scope, o); 130 133 } 131 134 String lastpart = parts[parts.length - 1]; … … 148 151 break; 149 152 } 150 obj = (ScriptableObject)obj.getPrototype();153 obj = obj.getPrototype(); 151 154 } 152 155 }