X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FMultiThreadedLockableScore.mts;fp=ts%2Fstructs%2FMultiThreadedLockableScore.mts;h=9d78ecab11b9ea99c7386d99329313b0a9c13cd8;hb=44e2b3520205dadcda0d34de8addc7a0b7ea7362;hp=3f282a5690cba68499069543cfd7f14667d9802d;hpb=27b8cc09b5182166e0ee7d7071dff5abfe71b8a2;p=ldk-java diff --git a/ts/structs/MultiThreadedLockableScore.mts b/ts/structs/MultiThreadedLockableScore.mts index 3f282a56..9d78ecab 100644 --- a/ts/structs/MultiThreadedLockableScore.mts +++ b/ts/structs/MultiThreadedLockableScore.mts @@ -480,7 +480,7 @@ export class MultiThreadedLockableScore extends CommonBase { * Creates a new [`MultiThreadedLockableScore`] given an underlying [`Score`]. */ public static constructor_new(score: Score): MultiThreadedLockableScore { - const ret: bigint = bindings.MultiThreadedLockableScore_new(score == null ? 0n : CommonBase.get_ptr_of(score)); + const ret: bigint = bindings.MultiThreadedLockableScore_new(CommonBase.get_ptr_of(score)); const ret_hu_conv: MultiThreadedLockableScore = new MultiThreadedLockableScore(null, ret); CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv); CommonBase.add_ref_from(ret_hu_conv, score);