BF [ 2108636 ] InfoInvoicePanel throws NPE

This commit is contained in:
teo_sarca 2008-09-13 07:52:44 +00:00
parent a587278332
commit abb2016715
1 changed files with 4 additions and 4 deletions

View File

@ -354,7 +354,7 @@ public class InfoInvoicePanel extends InfoPanel implements ValueChangeListener
// //
Double fromAmount = null; Double fromAmount = null;
Double toAmount = null; Double toAmount = null;
if (!amountFrom.getText().equals("")) if (!Util.isEmpty(amountFrom.getText()))
{ {
try try
{ {
@ -365,7 +365,7 @@ public class InfoInvoicePanel extends InfoPanel implements ValueChangeListener
} }
} }
if (!amountTo.getText().equals("")) if (!Util.isEmpty(amountTo.getText()))
{ {
try try
{ {
@ -467,7 +467,7 @@ public class InfoInvoicePanel extends InfoPanel implements ValueChangeListener
Double fromAmt = null; Double fromAmt = null;
Double toAmt = null; Double toAmt = null;
if (!amountFrom.getText().equals("")) if (!Util.isEmpty(amountFrom.getText()))
{ {
try try
{ {
@ -480,7 +480,7 @@ public class InfoInvoicePanel extends InfoPanel implements ValueChangeListener
} }
} }
if (!amountTo.getText().equals("")) if (!Util.isEmpty(amountTo.getText()))
{ {
try try
{ {