Update of /cvsroot/freenet/freenet/src/freenet/node/ds
In directory sc8-pr-cvs1:/tmp/cvs-serv13289/src/freenet/node/ds

Modified Files:
        StoreIOException.java 
Log Message:
fix NPE that was disguising ERROR...


Index: StoreIOException.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/ds/StoreIOException.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- StoreIOException.java       30 Aug 2003 23:16:52 -0000      1.2
+++ StoreIOException.java       25 Oct 2003 01:11:05 -0000      1.3
@@ -7,6 +7,11 @@
     }
     
     public String toString() {
-       return getClass().getName()+": "+getCause().toString();
+       StringBuffer sb = new StringBuffer();
+       sb.append(getClass().getName());
+       if(getCause() != null) {
+           sb.append(": "+getCause().toString());
+       }
+       return new String(sb);
     }
 }

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to