details:   https://code.openbravo.com/erp/devel/pi/rev/f74f6987c503
changeset: 20208:f74f6987c503
user:      David Miguelez <david.miguelez <at> openbravo.com>
date:      Thu Apr 25 12:23:10 2013 +0200
summary:   Fixes Issue 23626. Prevents Null Pointer Exception.

diffstat:

 src/org/openbravo/erpCommon/ad_forms/DocInOut.java |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r e6fc382fb846 -r f74f6987c503 
src/org/openbravo/erpCommon/ad_forms/DocInOut.java
--- a/src/org/openbravo/erpCommon/ad_forms/DocInOut.java        Thu Apr 25 
11:13:00 2013 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/DocInOut.java        Thu Apr 25 
12:23:10 2013 +0200
@@ -504,6 +504,9 @@
             // Get related M_Transaction_ID
             ShipmentInOutLine inOutLine = 
OBDal.getInstance().get(ShipmentInOutLine.class,
                 data[i].mInoutlineId);
+            if (inOutLine.getProduct() == null) {
+              continue;
+            }
             MaterialTransaction trx = null;
             if (inOutLine.getMaterialMgmtMaterialTransactionList().size() > 0) 
{
               trx = inOutLine.getMaterialMgmtMaterialTransactionList().get(0);

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to