Carlos Ruiz 2007-05-11 03:31:33 +00:00
parent d6cd765224
commit 4fab5dc0a9
1 changed files with 6 additions and 2 deletions

View File

@ -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