X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FCustomOnionMessageHandler.mts;fp=ts%2Fstructs%2FCustomOnionMessageHandler.mts;h=d75cf8961a5de2484377240786c2151e3c8383e6;hb=44e2b3520205dadcda0d34de8addc7a0b7ea7362;hp=d1ed2219be06343c80d888970b9999d889743c68;hpb=27b8cc09b5182166e0ee7d7071dff5abfe71b8a2;p=ldk-java diff --git a/ts/structs/CustomOnionMessageHandler.mts b/ts/structs/CustomOnionMessageHandler.mts index d1ed2219..d75cf896 100644 --- a/ts/structs/CustomOnionMessageHandler.mts +++ b/ts/structs/CustomOnionMessageHandler.mts @@ -506,7 +506,7 @@ export class CustomOnionMessageHandler extends CommonBase { * Called with the custom message that was received. */ public handle_custom_message(msg: CustomOnionMessageContents): void { - bindings.CustomOnionMessageHandler_handle_custom_message(this.ptr, msg == null ? 0n : CommonBase.get_ptr_of(msg)); + bindings.CustomOnionMessageHandler_handle_custom_message(this.ptr, CommonBase.get_ptr_of(msg)); CommonBase.add_ref_from(this, msg); }