Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 03. Procurement managementmajoralways2018-10-04 22:522018-11-15 09:20
ReporterlbressanView Statuspublic 
Assigned ToAtulOpenbravo 
PriorityhighResolutionduplicateFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Versionpi
OSAnyDatabasePostgreSQLJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned ToSandrahuguet
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0039406: Product Callout in Requisition Line can throw a Null Pointer when "UomManagement" preference is enabled.

DescriptionWhen trying to create a Requisition Line, if the preference "UomManagement" is enabled, the "SL_RequisitionLine_Product" callout throws an exception and apparently is affecting the visibility of some fields that evaluate this preference, such as "Operative Quantity" and "Alternative UOM".
In the code of the callout, inside an if statement, is evaluated if the preference "UomManagement" is enabled and if the product ID is empty. If this is true, a Utility is called where tries to obtain the entity of the product with the empty ID. Then, tries to get the UOM of the product and this throws a Null Pointer Exception.
Steps To Reproduce1) Enable the UomManagement preference. Make sure to set the preference visible to any user, organization and client.
2) Display the "Operative Quantity" and "Alternative UOM" fields.
3) Enter to Requisition window
4) Create a new Requisition and then a Requisition Line. Make sure that the "Order Uom" field is empty.
5) Check if "Operative Quantity" and "Alternative UOM" fields are displayed.
Proposed SolutionIf checking in SL_RequisitionLine_Product callout, that the product ID is empty and that the preference "UomManagement" is enabled, is correct (SL_RequisitionLine_Product.png), then the utility UOMUtil must check at some point, that the String parameter is not empty or the product obtained inside the getDefaultAUMForFlow method is different from null (UOMUtil.png). Otherwise, modify the if statement controlling that the String of the product is not empty, and if it is possible add more controls to the getDefaultAUMForFlow in UOMUtil.
TagsNo tags attached.
Attached Fileszip file icon [^] (122,121 bytes) 2018-10-04 22:52

- Relationships Relation Graph ] Dependency Graph ]
duplicate of defect 0039073 closedmarkmm82 NullPointerException in SL_RequisitionLine_Product callout if product is not selected in Requisition line 

-  Notes
AtulOpenbravo (developer)
2018-11-15 07:56

Fixed in commit [^]

- Issue History
Date Modified Username Field Change
2018-10-04 22:52 lbressan New Issue
2018-10-04 22:52 lbressan Assigned To => Triage Finance
2018-10-04 22:52 lbressan File Added:
2018-10-04 22:52 lbressan Modules => Core
2018-10-04 22:52 lbressan Resolution time => 1539813600
2018-10-04 22:52 lbressan Triggers an Emergency Pack => No
2018-11-07 12:26 gsuarez Type design defect => defect
2018-11-07 17:48 Sandrahuguet Resolution time 1539813600 => 1540418400
2018-11-07 17:57 Sandrahuguet Resolution time 1540418400 => 1539813600
2018-11-07 18:03 Sandrahuguet Resolution time 1539813600 => 1543359600
2018-11-07 18:04 Sandrahuguet Assigned To Triage Finance => AtulOpenbravo
2018-11-15 07:54 AtulOpenbravo Relationship added duplicate of 0039073
2018-11-15 07:56 AtulOpenbravo Note Added: 0107923
2018-11-15 09:20 Sandrahuguet Review Assigned To => Sandrahuguet
2018-11-15 09:20 Sandrahuguet Status new => closed
2018-11-15 09:20 Sandrahuguet Resolution open => duplicate

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker