details: https://code.openbravo.com/erp/devel/pi/rev/b37708f3bc77
changeset: 16793:b37708f3bc77
user: Javier Etxarri <javier.echarri <at> openbravo.com>
date: Fri Jun 08 10:55:44 2012 +0200
summary: Fixes issue 20709: NPE when adding a payment from invoice
issue 20692: Error 'Out of range' in invoices with two or more orders related
diffstat:
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
| 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 58e057ead4fb -r b37708f3bc77
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
---
a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
Fri Jun 08 09:59:53 2012 +0200
+++
b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
Fri Jun 08 10:55:44 2012 +0200
@@ -580,7 +580,7 @@
throws ServletException {
String strSelectedRecords = "";
- if (!"".equals(strSelectedPaymentDetails)) {
+ if (!"".equals(strSelectedPaymentDetails) && strSelectedPaymentDetails !=
null) {
strSelectedRecords = strSelectedPaymentDetails;
strSelectedRecords = strSelectedRecords.replace("(", "");
strSelectedRecords = strSelectedRecords.replace(")", "");
@@ -605,7 +605,8 @@
.contains(FIN_PaymentScheduleDetails[i])) ?
FIN_PaymentScheduleDetails[i].getId() : "";
// If selectedId belongs to a grouping selection calculate whether it
should be selected or
// not
- if (!"".equals(selectedId) && !"".equals(strSelectedPaymentDetails)) {
+ if (!"".equals(selectedId) && !"".equals(strSelectedPaymentDetails)
+ && strSelectedPaymentDetails != null) {
StringTokenizer records = new StringTokenizer(strSelectedRecords,
"'");
Set<String> recordSet = new LinkedHashSet<String>();
while (records.hasMoreTokens()) {
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits