From 4fab5dc0a98cf41e2c36f891eee163d83c4c18f9 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 11 May 2007 03:31:33 +0000 Subject: [PATCH] Bug Fix [ 1716866 ] Tax Rates By Zip Code https://sourceforge.net/tracker/?func=detail&atid=879332&aid=1716866&group_id=176962 https://sourceforge.net/tracker/index.php?func=detail&aid=1276304&group_id=29057&atid=410215 --- base/src/org/compiere/model/MTax.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/model/MTax.java b/base/src/org/compiere/model/MTax.java index a094b6499f..b7b55f6fcb 100644 --- a/base/src/org/compiere/model/MTax.java +++ b/base/src/org/compiere/model/MTax.java @@ -239,6 +239,8 @@ public class MTax extends X_C_Tax ResultSet rs = pstmt.executeQuery (); while (rs.next ()) { + MTaxPostal taxpostal = new MTaxPostal(getCtx(), rs, null); + list.add (taxpostal); } rs.close (); pstmt.close (); @@ -257,8 +259,10 @@ public class MTax extends X_C_Tax pstmt = null; } - m_postals = new MTaxPostal[list.size ()]; - list.toArray (m_postals); + if (list.size() > 0) { + m_postals = new MTaxPostal[list.size ()]; + list.toArray (m_postals); + } return m_postals; } // getPostals