2002/10/03 23:40:38
[org.ibex.core.git] / src / org / xwt / ByteStream.java
index cd3982a..ab2dac1 100644 (file)
@@ -15,7 +15,7 @@ public class ByteStream extends JSObject {
 
     private ByteStream() { setSeal(true); }
 
-    public String toString() { return "ByteStream, source=" + file.getAbsolutePath(); }
+    public String toString() { return "ByteStream, source=" + (file == null ? "memory" : file.getAbsolutePath()); }
     public String getClassName() { return "ByteStream"; }
 
     ByteStream(String filename) {