Author: lektran
Date: Sun Jul 8 00:26:05 2007
New Revision: 554331
URL:
http://svn.apache.org/viewvc?view=rev&rev=554331Log:
Applied fix from trunk for revision: 551411
Modified:
ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/HttpClient.java
Modified: ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/HttpClient.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/HttpClient.java?view=diff&rev=554331&r1=554330&r2=554331==============================================================================
--- ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/HttpClient.java (original)
+++ ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/HttpClient.java Sun Jul 8 00:26:05 2007
@@ -392,8 +392,10 @@
DataOutputStream out = new DataOutputStream(con.getOutputStream());
if (Debug.verboseOn() || debug) Debug.log("Opened output stream", module);
- out.writeBytes(arguments);
- if (Debug.verboseOn() || debug) Debug.log("Wrote arguements (parameters) : " + arguments, module);
+ if (arguments != null) {
+ out.writeBytes(arguments);
+ if (Debug.verboseOn() || debug) Debug.log("Wrote arguements (parameters) : " + arguments, module);
+ }
out.flush();
out.close();