From: Matt Corallo Date: Sun, 4 Sep 2022 01:32:20 +0000 (+0000) Subject: [TS] Update auto-generated TS CommonBase.mts X-Git-Tag: v0.0.110.1.1 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=5b8bca53a7459d80189d26c05429fe17551d5e4d;p=ldk-java [TS] Update auto-generated TS CommonBase.mts --- diff --git a/ts/structs/CommonBase.mts b/ts/structs/CommonBase.mts index 75630f91..0eb364b2 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;