svn commit: r810981 - /ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r810981 - /ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java

ashish-18
Author: ashish
Date: Thu Sep  3 14:51:29 2009
New Revision: 810981

URL: http://svn.apache.org/viewvc?rev=810981&view=rev
Log:
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);