While trying to list all Transactions for a certain Client I got this NullPointerException.
This occurs when Jackson tries to serialize the Transaction that contains a Refund, that again contains a Transaction which does not have a responseCode property set.
When Jackson tries to access the getResponseCodeDetail method, from the Refunded transaction, this null value is compared and Java throws an Exception when unboxing the Integer value.
There should be a null check before these if checks to fix this issue.
While trying to list all Transactions for a certain Client I got this
NullPointerException.This occurs when Jackson tries to serialize the
Transactionthat contains aRefund, that again contains aTransactionwhich does not have aresponseCodeproperty set.When Jackson tries to access the
getResponseCodeDetailmethod, from the Refunded transaction, thisnullvalue is compared and Java throws an Exception when unboxing the Integer value.There should be a
nullcheck before theseifchecks to fix this issue.