]> git.bitcoin.ninja Git - ldk-java/commitdiff
[TS] Update auto-generated TS CommonBase.mts v0.0.110.1.1
authorMatt Corallo <git@bluematt.me>
Sun, 4 Sep 2022 01:32:20 +0000 (01:32 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 4 Sep 2022 01:32:20 +0000 (01:32 +0000)
ts/structs/CommonBase.mts

index 75630f913c2b09a5449767fbae2ccd8c745af4e2..0eb364b2cdaaa57728d6aa21a77a48a64573d162 100644 (file)
@@ -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;