2003/11/22 06:44:39
[org.ibex.core.git] / src / org / xwt / js / JS.java
index 0f5373c..5ade735 100644 (file)
@@ -18,7 +18,7 @@ public class JS {
 
     public static String getSourceName() {
         Interpreter c = Interpreter.current();
-        return c.f == null ? null : c.f.sourceName;
+        return c == null || c.f == null ? null : c.f.sourceName;
     } 
 
     public static class PausedException extends Exception { PausedException() { } }