details: /erp/devel/pi/rev/9113294f841e
changeset: 10824:9113294f841e
user: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
date: Mon Feb 21 19:01:40 2011 +0100
summary: Fixes bug 16022: Reconciliation window: null pointer exception
diffstat:
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/MatchTransaction.java
| 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r d35faee28cf2 -r 9113294f841e
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/MatchTransaction.java
---
a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/MatchTransaction.java
Mon Feb 21 18:39:38 2011 +0100
+++
b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/MatchTransaction.java
Mon Feb 21 19:01:40 2011 +0100
@@ -98,12 +98,12 @@
if (reconciliation != null) {
OBContext.setAdminMode();
try {
+ getSnapShot(reconciliation);
reconciledItems =
reconciliation.getFINReconciliationLineVList().size();
} finally {
OBContext.restorePreviousMode();
}
}
- getSnapShot(reconciliation);
if (MatchTransactionDao.getUnMatchedBankStatementLines(account).size()
== 0
&& reconciledItems == 0) {
OBError message = Utility.translateError(this, vars,
vars.getLanguage(), Utility
@@ -114,6 +114,7 @@
if (reconciliation == null) {
reconciliation = MatchTransactionDao.addNewReconciliation(this, vars,
strFinancialAccountId);
+ getSnapShot(reconciliation);
} else {
updateReconciliation(vars, reconciliation.getId(),
strFinancialAccountId, strTabId, false);
}
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits