Author: ashish
Date: Thu Sep 3 14:51:29 2009
New Revision: 810981
URL:
http://svn.apache.org/viewvc?rev=810981&view=revLog:
Small fix - This was blocking Ebay request with empty description.
Modified:
ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java
Modified: ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java?rev=810981&r1=810980&r2=810981&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java (original)
+++ ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java Thu Sep 3 14:51:29 2009
@@ -229,7 +229,7 @@
ProductContentWrapper pcw = new ProductContentWrapper(dctx.getDispatcher(), prod, locale, "text/html");
StringUtil.StringWrapper ebayDescription = pcw.get("EBAY_DESCRIPTION");
- if (UtilValidate.isNotEmpty(ebayDescription)) {
+ if (UtilValidate.isNotEmpty(ebayDescription.toString())) {
UtilXml.addChildElementCDATAValue(itemElem, "Description", ebayDescription.toString(), itemDocument);
} else {
UtilXml.addChildElementValue(itemElem, "Description", encoder.encode(prod.getString("productName")), itemDocument);