]> 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>
Sun, 4 Sep 2022 00:04:26 +0000 (00:04 +0000)
commit4568b2bc1e3eb7555d2b5a3450f63698fad9aabc
treeae64ff96cacd1a3d19bb8781e5232ca67b6304bf
parent86706cda41dcc0d47b317b1f90a9757e44915657
[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