Page MenuHomePhabricator

Use "getInlines()", not "_inlines", to access inlines on client Changeset objects
ClosedPublic

Authored by epriestley on Oct 2 2020, 4:11 PM.
Tags
None
Referenced Files
F22704000: D21475.id.diff
Sat, Oct 3, 4:22 AM
Unknown Object (File)
Aug 11 2026, 1:29 PM
Unknown Object (File)
Aug 11 2026, 11:11 AM
Unknown Object (File)
Jul 1 2026, 1:10 PM
Unknown Object (File)
Jul 1 2026, 11:49 AM
Unknown Object (File)
Jul 1 2026, 8:53 AM
Unknown Object (File)
Jun 26 2026, 3:03 AM
Unknown Object (File)
Jun 25 2026, 2:05 PM
Subscribers
None

Details

Summary

See PHI1898. An install is reporting an execution/initialization order issue where this code is reachable before _inlines is initialized.

I can't immediately reproduce it, but using "getInlines()" is preferable anyway and seems likely to fix the problem.

Test Plan

Viewed revisions with inlines, added/removed/edited/replied to inlines, didn't find anything broken.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • Fix a possible call reentrancy issue, where "getInlines()" and "getInlineForRow()" could call one another.
This revision was not accepted when it landed; it landed in state Needs Review.Oct 2 2020, 4:19 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.