diff --git a/base/src/org/compiere/process/PaymentOnline.java b/base/src/org/compiere/process/PaymentOnline.java index 4fb5378f3f..b98dc02fa1 100644 --- a/base/src/org/compiere/process/PaymentOnline.java +++ b/base/src/org/compiere/process/PaymentOnline.java @@ -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)