Jacopo,
after run-install and logged with admin user i get and error in Quick
Finalize Order screen.
Target exception: java.lang.NullPointerException: Null Pointer in Method
Invocation
(Sourced file:
component://order/webapp/ordermgr/WEB-INF/actions/entry/checkoutoptions.bsh)
(Error running BSH script at
[component://order/webapp/ordermgr/WEB-INF/actions/entry/checkoutoptions.bsh],
line [93]: Sourced file:
component://order/webapp/ordermgr/WEB-INF/actions/entry/checkoutoptions.bsh
: at Line: 93 : in file:
component://order/webapp/ordermgr/WEB-INF/actions/entry/checkoutoptions.bsh
: salesReprs .size ( )
This will fix it:
Index: order/webapp/ordermgr/WEB-INF/actions/entry/checkoutoptions.bsh
===================================================================
--- order/webapp/ordermgr/WEB-INF/actions/entry/checkoutoptions.bsh
(revision 574505)
+++ order/webapp/ordermgr/WEB-INF/actions/entry/checkoutoptions.bsh (working
copy)
@@ -90,10 +90,12 @@
cartParties.add(shoppingCart.getSupplierAgentPartyId());
}
List salesReprs =
(List)shoppingCart.getAdditionalPartyRoleMap().get("SALES_REP");
-for (int i = 0; i < salesReprs.size(); i++) {
- String salesRep = (String)salesReprs.get(i);
- if (!cartParties.contains(salesRep)) {
- cartParties.add(salesRep);
+if (salesReprs != null) {
+ for (int i = 0; i < salesReprs.size(); i++) {
+ String salesRep = (String)salesReprs.get(i);
+ if (!cartParties.contains(salesRep)) {
+ cartParties.add(salesRep);
+ }
}
}
context.put("cartParties", cartParties);
Should i create issue for this, or it ok to copy from here ?
BTW is this functionality the same with Ship to Another Party in checkout
screen or it is more behind it? Of course this one is in quick checkout
mode/screen :)
Regards,
Bilgin Ibryam
--
View this message in context:
http://www.nabble.com/svn-commit%3A-r574259---in--ofbiz-trunk-applications-order%3A-config--data--src-org-ofbiz-order-shoppingcart--webapp-ordermgr-WEB-INF--webapp-ordermgr-WEB-INF-actions-entry--webapp-ordermgr-entry--tf4415143.html#a12611370
Sent from the OFBiz - Commits mailing list archive at Nabble.com.