[ https://issues.apache.org/jira/browse/OFBIZ-13226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17947864#comment-17947864 ]
ASF subversion and git services commented on OFBIZ-13226: --------------------------------------------------------- Commit cea243e084d2b714e959b9fcc0e5ca65800ead9b in ofbiz-framework's branch refs/heads/release24.09 from Nicolas Malin [ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=cea243e084 ] Fixed: Error When Adding Actual Material After Confirming Production Run in OFBiz (OFBIZ-13226) After add an actual material to a production run OFBiz generate a NullPointerException due to strange productId resolution. This appears after minilang conversion where tests pass but on this particular case the screen failed. Thanks to Yashwant Dhakad to raise this issue > Error When Adding Actual Material After Confirming Production Run in OFBiz > -------------------------------------------------------------------------- > > Key: OFBIZ-13226 > URL: https://issues.apache.org/jira/browse/OFBIZ-13226 > Project: OFBiz > Issue Type: Bug > Affects Versions: Upcoming Branch > Reporter: Yashwant Dhakad > Assignee: Nicolas Malin > Priority: Major > Attachments: AddMaterialToProductionRun.png, OFBIZ-13226.patch > > > *Issue Description:* > When attempting to add an actual material entry to a confirmed Production > Run, OFBiz throws the following error message: > {code} > The Following Errors Occurred: > Error calling event: org.apache.ofbiz.webapp.event.EventHandlerException: > Service invocation error (Cannot get property 'productId' on null object) > {code} > This appears to happen only after the production run status has been set to > 'Confirmed', and then the user attempts to add materials under Actual > Materials for a routing task. > *Steps to Reproduce:* > Navigate to Manufacturing → Job Shop. > Select a Production Run and confirm its status. > Go to Actual Materials tab. > Select a Task ID and provide a valid Product ID and Quantity. > Click Add. > *Expected Result:* > The material should be successfully added to the selected production run task > without any errors. > *Actual Result:* > An error is displayed at the top of the screen, and the material is not added. > The error message suggests a null object reference where the code attempts to > access the productId property. -- This message was sent by Atlassian Jira (v8.20.10#820010)