details:   /erp/devel/pi/rev/a205312e847b
changeset: 12915:a205312e847b
user:      Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
date:      Tue Jun 21 12:07:53 2011 +0200
summary:   Removes null pointer exception for Reconciliation accounting

diffstat:

 src/org/openbravo/erpCommon/ad_forms/DocFINReconciliation.java |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r ae387ec20eae -r a205312e847b 
src/org/openbravo/erpCommon/ad_forms/DocFINReconciliation.java
--- a/src/org/openbravo/erpCommon/ad_forms/DocFINReconciliation.java    Tue Jun 
21 09:25:30 2011 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/DocFINReconciliation.java    Tue Jun 
21 12:07:53 2011 +0200
@@ -622,8 +622,10 @@
       bpartnerId = paymentDetail.getFINPaymentScheduleDetailList().get(0)
           .getInvoicePaymentSchedule() != null ? 
paymentDetail.getFINPaymentScheduleDetailList()
           
.get(0).getInvoicePaymentSchedule().getInvoice().getBusinessPartner().getId()
-          : 
paymentDetail.getFINPaymentScheduleDetailList().get(0).getOrderPaymentSchedule()
-              .getOrder().getBusinessPartner().getId();
+          : 
paymentDetail.getFINPaymentScheduleDetailList().get(0).getOrderPaymentSchedule()
 != null ? paymentDetail
+              
.getFINPaymentScheduleDetailList().get(0).getOrderPaymentSchedule().getOrder()
+              .getBusinessPartner().getId()
+              : "";
     }
     if (line.cGlItemId != null && !"".equals(line.cGlItemId)) {
       fact.createLine(line, 
getAccountGLItem(OBDal.getInstance().get(GLItem.class, line.cGlItemId),

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to