[
https://issues.apache.org/jira/browse/OFBIZ-11252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16953464#comment-16953464 ]
Devanshu Vyas commented on OFBIZ-11252:
---------------------------------------
I have uploaded a patch containing the fix to avoid the NPE generated on the FTL.
> FTL error for purchase order with Bulk Item Type
> ------------------------------------------------
>
> Key: OFBIZ-11252
> URL:
https://issues.apache.org/jira/browse/OFBIZ-11252> Project: OFBiz
> Issue Type: Bug
> Components: order
> Affects Versions: Trunk, Release Branch 16.11, Release Branch 17.12, Release Branch 18.12
> Reporter: Devanshu Vyas
> Assignee: Devanshu Vyas
> Priority: Major
> Attachments: OFBIZ-11252.patch
>
>
> Steps to regenerate:
> 1. Login into the ordermgr application and click on Order Entry tab
> 2. Create PO with any supplier
> 3. Fill details and click on Continue
> 4. Now select Product Category with Item type Bulk and add the description and Click on add to order
> 5. Finalize order with Finalize Order button
> 6. Add Term type, ship group option, etc details and create Order.
> 7. Scroll down to Order Items section and See the FTL error on the screen.
>
> {code:java}
> The following has evaluated to null or missing: ==> product [in template "component://order/template/order/OrderItems.ftl" at line 252, column 71] ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #if "SERVICE" == product.productTypeI... [in template "component://order/template/order/OrderItems.ftl" at line 252, column 53] ----
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)