Fix bug [ 1858670 ] NPE in PaymentOnline

This commit is contained in:
Carlos Ruiz 2007-12-26 22:53:38 +00:00
parent 1b0d73c825
commit afaace6001
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ public class PaymentOnline extends SvrProcess
msg = MPaymentValidate.validateCreditCardExp(pp.getCreditCardExpMM(), pp.getCreditCardExpYY());
if (msg != null && msg.length() > 0)
throw new IllegalArgumentException(Msg.getMsg(getCtx(), msg));
if (pp.getCreditCardVV().length() > 0)
if (pp.getCreditCardVV() != null && pp.getCreditCardVV().length() > 0)
{
msg = MPaymentValidate.validateCreditCardVV(pp.getCreditCardVV(), pp.getCreditCardType());
if (msg != null && msg.length() > 0)