details: https://code.openbravo.com/erp/devel/pi/rev/547666a7b5ee changeset: 24121:547666a7b5ee user: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com> date: Fri Jul 25 10:55:58 2014 +0200 summary: Removes nullpointerexception error from CI
details: https://code.openbravo.com/erp/devel/pi/rev/336a98b4d28e changeset: 24122:336a98b4d28e user: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com> date: Fri Jul 25 10:56:35 2014 +0200 summary: Adds additional log to AcctServer when catching exceptions diffstat: src/org/openbravo/erpCommon/ad_forms/AcctServer.java | 1 + src/org/openbravo/erpCommon/ad_forms/DocInventory.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletions(-) diffs (24 lines): diff -r a0b47771f3be -r 336a98b4d28e src/org/openbravo/erpCommon/ad_forms/AcctServer.java --- a/src/org/openbravo/erpCommon/ad_forms/AcctServer.java Fri Jul 25 14:05:53 2014 +0530 +++ b/src/org/openbravo/erpCommon/ad_forms/AcctServer.java Fri Jul 25 10:56:35 2014 +0200 @@ -1089,6 +1089,7 @@ m_fact[index] = createFact(m_as[index], conn, con, vars); } catch (Exception e) { log4j.warn(e); + log4j.warn("RecordID: " + Record_ID + " - TableId: " + AD_Table_ID); e.printStackTrace(); } if (!Status.equals(STATUS_NotPosted)) diff -r a0b47771f3be -r 336a98b4d28e src/org/openbravo/erpCommon/ad_forms/DocInventory.java --- a/src/org/openbravo/erpCommon/ad_forms/DocInventory.java Fri Jul 25 14:05:53 2014 +0530 +++ b/src/org/openbravo/erpCommon/ad_forms/DocInventory.java Fri Jul 25 10:56:35 2014 +0200 @@ -180,7 +180,8 @@ int countInvLinesWithTrnCostZero = 0; for (int i = 0; i < p_lines.length; i++) { DocLine_Material line = (DocLine_Material) p_lines[i]; - if (line.transaction.getTransactionCost().compareTo(ZERO) == 0) { + if (line.transaction.getTransactionCost() != null + && line.transaction.getTransactionCost().compareTo(ZERO) == 0) { countInvLinesWithTrnCostZero++; } } ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Openbravo-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbravo-commits
