From: Matt Corallo Date: Sat, 3 Sep 2022 20:41:43 +0000 (+0000) Subject: [TS] Update auto-generated file X-Git-Tag: v0.0.110.3^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=49083f71bb372883f32d22758c808d9de7c73575;p=ldk-java [TS] Update auto-generated file --- diff --git a/ts/structs/CommonBase.mts b/ts/structs/CommonBase.mts index 8ce5766a..df2cad8e 100644 --- a/ts/structs/CommonBase.mts +++ b/ts/structs/CommonBase.mts @@ -374,7 +374,7 @@ export class CommonBase { // In TypeScript, protected means "any subclass can access parent fields on instances of itself" // To work around this, we add accessors for other instances' protected fields here. protected static add_ref_from(holder: CommonBase, referent: object) { - holder.ptrs_to.push(referent); + if (holder !== null) { holder.ptrs_to.push(referent); } } protected static get_ptr_of(o: CommonBase) { return o.ptr;