Author: nextgens
Date: 2008-08-26 14:05:37 +0000 (Tue, 26 Aug 2008)
New Revision: 22174

Modified:
   trunk/freenet/src/freenet/support/io/TempBucketFactory.java
Log:
logging

Modified: trunk/freenet/src/freenet/support/io/TempBucketFactory.java
===================================================================
--- trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-26 
13:30:17 UTC (rev 22173)
+++ trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-26 
14:05:37 UTC (rev 22174)
@@ -197,6 +197,8 @@
                }

                public synchronized InputStream getInputStream() throws 
IOException {
+                       if(os == null)
+                               throw new IOException("No OutputStream has been 
openned! Why would you want an InputStream then?");
                        return new TempBucketInputStream(osIndex);
                }



Reply via email to