Author: sichen
Date: Thu Jul 13 17:38:39 2006
New Revision: 421770
URL:
http://svn.apache.org/viewvc?rev=421770&view=revLog:
Fix possible NPE on the order header page if the order name of the shopping cart comes back null
Modified:
incubator/ofbiz/trunk/applications/order/webapp/ordermgr/entry/orderHeaderInfo.ftl
Modified: incubator/ofbiz/trunk/applications/order/webapp/ordermgr/entry/orderHeaderInfo.ftl
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/order/webapp/ordermgr/entry/orderHeaderInfo.ftl?rev=421770&r1=421769&r2=421770&view=diff==============================================================================
--- incubator/ofbiz/trunk/applications/order/webapp/ordermgr/entry/orderHeaderInfo.ftl (original)
+++ incubator/ofbiz/trunk/applications/order/webapp/ordermgr/entry/orderHeaderInfo.ftl Thu Jul 13 17:38:39 2006
@@ -57,7 +57,7 @@
<td class="tabletext"><b>${uiLabelMap.OrderOrderName}</b>:</td>
<td class="tabletext">
<form method="post" action="setOrderName" name="setCartOrderNameForm">
- <input type="text" name="orderName" class="inputBox" size="15" maxlength="200" value="${shoppingCart.getOrderName()}"/>
+ <input type="text" name="orderName" class="inputBox" size="15" maxlength="200" value='${shoppingCart.getOrderName()?default("")}'/>
<input type="submit" value="${uiLabelMap.CommonSet}" class="smallSubmit"/>
</form>
</td>