You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by si...@apache.org on 2007/12/03 22:45:33 UTC

svn commit: r600699 - /ofbiz/trunk/applications/order/webapp/ordermgr/quote/quoteReportContactMechs.fo.ftl

Author: sichen
Date: Mon Dec  3 13:45:32 2007
New Revision: 600699

URL: http://svn.apache.org/viewvc?rev=600699&view=rev
Log:
Fix NPE in Quote PDF if city is left blank

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/quote/quoteReportContactMechs.fo.ftl

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/quote/quoteReportContactMechs.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/quote/quoteReportContactMechs.fo.ftl?rev=600699&r1=600698&r2=600699&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/quote/quoteReportContactMechs.fo.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/quote/quoteReportContactMechs.fo.ftl Mon Dec  3 13:45:32 2007
@@ -41,7 +41,7 @@
                             <#if toPostalAddress?exists>
                             <fo:block>${toPostalAddress.address1?if_exists}</fo:block>
                             <fo:block>${toPostalAddress.address2?if_exists}</fo:block>
-                            <fo:block>${toPostalAddress.city}<#if toPostalAddress.stateProvinceGeoId?has_content>, ${toPostalAddress.stateProvinceGeoId}</#if> ${toPostalAddress.postalCode?if_exists}</fo:block>
+                            <fo:block>${toPostalAddress.city?if_exists}<#if toPostalAddress.stateProvinceGeoId?has_content>, ${toPostalAddress.stateProvinceGeoId}</#if> ${toPostalAddress.postalCode?if_exists}</fo:block>
                             </#if>
                         </fo:block>
                     </fo:table-cell>