Openbravo Issue Tracking System - Retail Modules
View Issue Details
0043822Retail ModulesLayaway orderpublic2019-09-19 10:382020-04-23 17:20
airaceburu 
rqueralta 
normalmajoralways
closedfixed 
5
 
RR19Q4.4RR19Q4.4 
marvintm
Production - Confirmed Stable
2019-05-29
RR19Q3
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1df20ca903a7#l1.8 [^]
No
0043822: VoidLayaway.java can throw NPE
VoidLayaway.java is retrieving values from jsonorder without a sannity check. This value is sent as null from autocancelreservation for example.
Install autocancelreservation
Create a layaway
Run the auto void layaway process
Check that the voiding process is failing due to the NPE
Attached patch
No tags attached.
blocks defect 0041852 closed rqueralta VoidLayaway.java can throw NPE 
Issue History
2020-04-22 11:23marvintmTypedefect => backport
2020-04-22 11:23marvintmTarget Version => RR19Q4.4
2020-04-22 13:05hgbotCheckin
2020-04-22 13:05hgbotNote Added: 0119335
2020-04-22 13:05hgbotStatusscheduled => resolved
2020-04-22 13:05hgbotResolutionopen => fixed
2020-04-22 13:05hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9252cf8edbf5ee84c66917d7a45fab39db8e8bd1 [^] => http://code.openbravo.com/retail/backports/3.0RR19Q4.4/org.openbravo.retail.posterminal/rev/a8b216d6c6e45518e9659e03613e9d562032068e [^]
2020-04-23 17:20marvintmReview Assigned Tojorge-garcia => marvintm
2020-04-23 17:20marvintmStatusresolved => closed
2020-04-23 17:20marvintmFixed in Version => RR19Q4.4

Notes
(0119335)
hgbot   
2020-04-22 13:05   
Repository: retail/backports/3.0RR19Q4.4/org.openbravo.retail.posterminal
Changeset: a8b216d6c6e45518e9659e03613e9d562032068e
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Wed Apr 22 16:19:57 2020 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR19Q4.4/org.openbravo.retail.posterminal/rev/a8b216d6c6e45518e9659e03613e9d562032068e [^]

Fixed issue 43822: VoidLayaway.java can throw NPE

- Avoided null pointer exception with autocancelreservation installed

---
M src/org/openbravo/retail/posterminal/VoidLayaway.java
---