Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034178Retail ModulesWeb POSpublic2016-10-08 11:052017-06-30 10:54
mtaal 
Retail 
normalminorhave not tried
newopen 
5
 
 
No
0034178: NPE in UpdateCashup if lastcashupeportdate not present in json, also typo in variable name
When the lastcashupeportdate is not present in the json then a NPE is encountered. There is a preceding if statement so it is clear that the lastcashupeportdate does not need to be present.

[1]
java.lang.NullPointerException
    at org.openbravo.retail.posterminal.UpdateCashup.getAndUpdateCashUp(UpdateCashup.java:114)
    at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:209)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:198)
Not clear how to reproduce
Prevent the NPE
Repair the wrong name, wrong names will cause future errors!
No tags attached.
Issue History
2016-10-08 11:05mtaalNew Issue
2016-10-08 11:05mtaalAssigned To => Retail
2016-10-08 11:05mtaalTriggers an Emergency Pack => No
2016-10-11 12:08marvintmTarget VersionRR16Q4 => RR17Q1
2016-12-23 14:27marvintmTarget VersionRR17Q1 => RR17Q2
2017-03-29 17:20marvintmTarget VersionRR17Q2 => RR17Q3
2017-06-12 12:42SandrahuguetNote Added: 0097306
2017-06-30 10:54marvintmTarget VersionRR17Q3 =>

Notes
(0097306)
Sandrahuguet   
2017-06-12 12:42   
Issue also reproducible in ret-higvol jobs [1]

[1] http://ci.openbravo.com/view/retail/job/ret-higvol-pgsql/lastSuccessfulBuild/artifact/SANDBOX/tomcat-logs/ret-higvol-pgsql.log [^]