Author: toad
Date: 2009-03-13 21:08:41 +0000 (Fri, 13 Mar 2009)
New Revision: 26025
Modified:
branches/db4o/freenet/src/freenet/client/FetchException.java
Log:
Fix NPE, comment
Modified: branches/db4o/freenet/src/freenet/client/FetchException.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/FetchException.java
2009-03-13 21:08:22 UTC (rev 26024)
+++ branches/db4o/freenet/src/freenet/client/FetchException.java
2009-03-13 21:08:41 UTC (rev 26025)
@@ -245,8 +245,8 @@
super(e.getMessage());
initCause(e);
this.mode = e.mode;
- this.newURI = e.newURI.clone();
- this.errorCodes = e.errorCodes.clone();
+ this.newURI = e.newURI == null ? null : e.newURI.clone();
+ this.errorCodes = e.errorCodes == null ? null :
e.errorCodes.clone();
this.expectedMimeType = e.expectedMimeType;
this.expectedSize = e.expectedSize;
this.extraMessage = e.extraMessage;
@@ -255,7 +255,6 @@
Logger.error(this, "Internal error: "+this);
else if(Logger.shouldLog(Logger.MINOR, this))
Logger.minor(this, "FetchException("+getMessage(mode)+
')', this);
- // TODO Auto-generated constructor stub
}
public static String getShortMessage(int mode) {
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs