X-Git-Url: http://git.megacz.com/?p=org.ibex.xt-crawshaw.git;a=blobdiff_plain;f=src%2Fjava%2Forg%2Fibex%2Fxt%2Fshell%2FJSRemote.java;fp=src%2Fjava%2Forg%2Fibex%2Fxt%2Fshell%2FJSRemote.java;h=e54a9f523322a514de7f3fcfcfaacef64c0fd0a1;hp=4b3e47584b209c0b128fcd9ba77bbcd6d2c881f4;hb=8dcd09248633282c9ec641b56c00ea3d95d790e7;hpb=7959860be8bb0ac8aa172e1de8bb140b65afdae6 diff --git a/src/java/org/ibex/xt/shell/JSRemote.java b/src/java/org/ibex/xt/shell/JSRemote.java index 4b3e475..e54a9f5 100644 --- a/src/java/org/ibex/xt/shell/JSRemote.java +++ b/src/java/org/ibex/xt/shell/JSRemote.java @@ -176,6 +176,7 @@ public class JSRemote extends JS { } int pos = k.lastIndexOf('.'); if (pos >= 0) { + if (path == null) path = ""; path += k.substring(0, pos); k = k.substring(pos + 1); } @@ -196,7 +197,7 @@ public class JSRemote extends JS { if (s.length() > 0 && !s.equals(".")) { Object ob = scope.get(s); if (ob == null || !(ob instanceof JS)) - throw new JSExn("path not found"); + throw new JSExn("path not found "); scope = (JS)ob; } }