Thursday, 11 November 2010

JadaSite shops without Payment Gateways

(JadaSite 2.03)

I didn't set any Payment Gateway in my shops. While shopping, I go Null Pointer Exception:

2010-11-11 10:39:25,452 ERROR [http-8180-Processor24] (ContentLookupDispatchAction.java:165) - Exception encountered in null
2010-11-11 10:39:25,452 ERROR [http-8180-Processor24] (ContentLookupDispatchAction.java:166) - Exception
java.lang.NullPointerException
    at com.jada.content.checkout.ShoppingCartCancelCheckoutAction.cancel(ShoppingCartCancelCheckoutAction.java:48)

To fix this, add check for line 48 in ShoppingCartCancelCheckoutAction:

PaymentEngine paymentEngine = shoppingCart.getPaymentEngine();
if (paymentEngine != null) {
    paymentEngine.abort();
}

No comments:

Popular Posts