From 214b34c3770516b317051dbacc5bf7184fbd971b Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 6 Dec 2012 17:38:18 -0500 Subject: [PATCH] IDEMPIERE-455 Discover and fix FindBugs problems / Pattern NP_NULL_ON_SOME_PATH --- .../src/org/compiere/minigrid/MiniTable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.swing/src/org/compiere/minigrid/MiniTable.java b/org.adempiere.ui.swing/src/org/compiere/minigrid/MiniTable.java index 76b69d6846..fb7e4692d8 100644 --- a/org.adempiere.ui.swing/src/org/compiere/minigrid/MiniTable.java +++ b/org.adempiere.ui.swing/src/org/compiere/minigrid/MiniTable.java @@ -798,7 +798,7 @@ public class MiniTable extends CTable implements IMiniTable if(subtotal == null) subtotal = new Double(0); if(amt == null ) - subtotal = new Double(0); + amt = new Double(0); total[col] = subtotal + amt; } @@ -873,7 +873,7 @@ public class MiniTable extends CTable implements IMiniTable if(subtotal == null) subtotal = new Double(0); if(amt == null ) - subtotal = new Double(0); + amt = new Double(0); total[col] = subtotal + amt; }