]> git.bitcoin.ninja Git - ldk-java/commit
[TS+Java] Ensure we don't try to add a reference from `null`.
authorMatt Corallo <git@bluematt.me>
Sat, 3 Sep 2022 20:24:10 +0000 (20:24 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 3 Sep 2022 21:41:23 +0000 (21:41 +0000)
commit305052451d456ee72ef4d37547d11c4ad610fbe7
tree75d040197608d8ea451f206462dfeea426d3ab50
parentd4ebc8460b78ba0e16bdc07fe2e53851686ac352
[TS+Java] Ensure we don't try to add a reference from `null`.

At least in `Event::PaymentPathFailed` if we try to map an event
with no `retry` we'll hit a `NullPointerException` as we'll try to
add a reference from the `null` retry back to the `Event` itself.

The simple fix is to simply exhaustively check for `null` before
adding references everywhere.
java_strings.py
typescript_strings.py