You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve null-forgiving suppression on events-tab fetch, trim test comments
nickkhalow's review blocked on the diff-ratchet lint BLOCK for
`place!.Positions` at PlaceInfoPanelController.cs:439: the diff retyped the
fetch's return value but re-touched a pre-existing null-forgiving
dereference instead of guarding it. Root cause is that
FetchEventsAndShowThemAsync never establishes that `place` is non-null
before using it, unlike sibling methods in this file (SetOriginParcel,
StartNavigation) which already guard with `if (place == null) return;`.
Add the same guard and capture the narrowed value into a local before the
SetAsLoadingState() call runs (a field's narrowed null-state does not
survive a method call), so the fetch call site no longer needs `!`. The
file's other six pre-existing `place!` occurrences are left untouched as
out of scope for this PR.
Also trims PlaceInfoPanelControllerEventOrderingShould.cs's three comment
blocks (class doc + two SetUp asides) down to this repo's established
1-3 line regression-comment convention (JumpButtonShould.cs,
LiveKitChatMessagesBusShould.cs, DebugWebRequestInfoShould.cs); the
narrative content they trimmed was independently verified accurate but
belongs in the PR description, not the diff.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018c638dR1vPysCMbYt2qQg5
0 commit comments