[freenet-cvs] r14564 - trunk/freenet/src/freenet/support/io

toad at freenetproject.org toad at freenetproject.org
Thu Aug 9 15:26:46 UTC 2007


Author: toad
Date: 2007-08-09 15:26:45 +0000 (Thu, 09 Aug 2007)
New Revision: 14564

Modified:
   trunk/freenet/src/freenet/support/io/BaseFileBucket.java
Log:
check explicitly for file = null - debug paranoia

Modified: trunk/freenet/src/freenet/support/io/BaseFileBucket.java
===================================================================
--- trunk/freenet/src/freenet/support/io/BaseFileBucket.java	2007-08-09 14:28:43 UTC (rev 14563)
+++ trunk/freenet/src/freenet/support/io/BaseFileBucket.java	2007-08-09 15:26:45 UTC (rev 14564)
@@ -24,6 +24,7 @@
 	protected static String tempDir = null;
 
 	public BaseFileBucket(File file) {
+		if(file == null) throw new NullPointerException();
 		this.length = file.length();
 		if(deleteOnExit()) {
 			try {




More information about the cvs mailing list