Skip to content

Null pointer exception when Serializing Transaction with a Refund #64

@vladaspasic

Description

@vladaspasic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions