Fixes bug 0004558: Posting Amortization cause blocks in database
authorDavid Alsasua <david.alsasua@openbravo.com>
Thu, 21 Aug 2008 10:57:36 +0000
changeset 1577 c739453a69e0
parent 1576 bb3c7a88250a
child 1578 fdbd3b360ab2
Fixes bug 0004558: Posting Amortization cause blocks in database
src/org/openbravo/erpCommon/ad_forms/DocAmortization.java
--- a/src/org/openbravo/erpCommon/ad_forms/DocAmortization.java	Wed Aug 20 20:27:35 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/DocAmortization.java	Thu Aug 21 10:57:36 2008 +0000
@@ -79,7 +79,11 @@
     }catch(ServletException e){
         log4jDocAmortization.warn(e);
     }
-    log4jDocAmortization.debug("Record_ID = " + Record_ID + " - Lines=" + p_lines.length);
+    if (p_lines != null) {
+      log4jDocAmortization.debug("Record_ID = " + Record_ID + " - Lines=" + p_lines.length);
+    } else {
+      log4jDocAmortization.debug("Record_ID = " + Record_ID + " - Lines= **p_lines is null**");
+    }
         //
     for (int i=0;data!=null && i<data.length;i++){
         String Line_ID = data[i].getField("A_AMORTIZATIONLINE_ID");