Skip to content

Commit 49083f7

Browse files
committed
[TS] Update auto-generated file
1 parent 3c60e0f commit 49083f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/structs/CommonBase.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export class CommonBase {
374374
// In TypeScript, protected means "any subclass can access parent fields on instances of itself"
375375
// To work around this, we add accessors for other instances' protected fields here.
376376
protected static add_ref_from(holder: CommonBase, referent: object) {
377-
holder.ptrs_to.push(referent);
377+
if (holder !== null) { holder.ptrs_to.push(referent); }
378378
}
379379
protected static get_ptr_of(o: CommonBase) {
380380
return o.ptr;

0 commit comments

Comments
 (0)