Project:
View Revisions: Issue #39026 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0039026: Terminal with empty cache receives an error retrieving current cashup when it have all payment methods inactive | ||
Revision | 2018-07-24 13:17 by guilleaer | ||
Description | Login cannot be done in a terminal which match with the following conditions a) Empty cache b) Valid cashup (not processed) c) Terminal should have several INACTIVE payment types (defined in POS terminal window) c) Valid cashup should have a payment method cashup created for each inactive payment type Under these circumstances, a null pointer exception is raised by org.openbravo.retail.posterminal.master.Cashup Method: GetPayments Below query results is null OBCriteria<OBPOSAppPayment> paymentAppMethodCriteria = OBDal.getInstance().createCriteria( OBPOSAppPayment.class); paymentAppMethodCriteria.add(Restrictions.eq(OBPOSAppPayment.PROPERTY_ID, paymentMethodJSON.get("paymentType"))); OBPOSAppPayment paymentAppMethod = (OBPOSAppPayment) paymentAppMethodCriteria.uniqueResult(); Later on code tries to pick the lineNo field of the object created above which is null. It results in a NullPointerException paymentMethodJSON.put("lineNo", paymentAppMethod.getLine()); 3146207 [http-bio-8098-exec-62] ERROR org.openbravo.retail.posterminal.master.Cashup - Error during exec java.lang.NullPointerException at org.openbravo.retail.posterminal.master.Cashup.getPayments(Cashup.java:161) |
||
Revision | 2018-07-24 13:17 by guilleaer | ||
Description | Login cannot be done in a terminal which match with the following conditions a) Empty cache b) Valid cashup (not processed) c) Terminal should have several INACTIVE payment types (defined in POS terminal window) c) Valid cashup should have a payment method cashup created for each inactive payment type Under these circumstances, a null pointer exception is raised by org.openbravo.retail.posterminal.master.Cashup Method: GetPayments Below query results is null OBCriteria<OBPOSAppPayment> paymentAppMethodCriteria = OBDal.getInstance().createCriteria( OBPOSAppPayment.class); paymentAppMethodCriteria.add(Restrictions.eq(OBPOSAppPayment.PROPERTY_ID, paymentMethodJSON.get("paymentType"))); OBPOSAppPayment paymentAppMethod = (OBPOSAppPayment) paymentAppMethodCriteria.uniqueResult(); Later on code tries to pick the lineNo field of the object created above which is null. It results in a NullPointerException paymentMethodJSON.put("lineNo", paymentAppMethod.getLine()); |
Copyright © 2000 - 2009 MantisBT Group |