Author: toad
Date: 2008-04-05 13:44:17 +0000 (Sat, 05 Apr 2008)
New Revision: 19023

Modified:
   trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java
Log:
Don't parse data if there isn't any.

Modified: trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java 2008-04-05 
13:37:16 UTC (rev 19022)
+++ trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java 2008-04-05 
13:44:17 UTC (rev 19023)
@@ -125,11 +125,13 @@
                this.data = d;
                this.parts = new HashMap();
                this.bucketfactory = ctx.getBucketFactory();
+               if(data != null) {
                try {
                        this.parseMultiPartData();
                } catch (IOException ioe) {
                        Logger.error(this, "Temporary files error ? Could not 
parse: "+ioe, ioe);
                }
+               }
        }




Reply via email to