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^0 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=65f311dee229ba66c974df0e414341d6baee4115;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;