Small fix - This was blocking Ebay request with empty description.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@810981 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ashish Vijaywargiya
2009-09-03 14:51:29 +00:00
parent cc41bd2564
commit 709ccb6927
@@ -229,7 +229,7 @@ public class ProductsExportToEbay {
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);