When voiding an already voided payment, in onPaymentVoided the payment object is null and when creating the response, payment.id is null and throws a Object references not set to an instance. Then the listener never receives the response.
the problem is in line 2066. I changed locally in order to work.