Page MenuHomePhabricator

handle `undefined|null` properties
Closed, ResolvedPublic

Description

Error logs error TypeError: Cannot read properties of undefined or null show that these should be better handled. We can safe-guard these and also validate inputs early.

Event Timeline

ecarg changed the task status from Open to In Progress.
ecarg triaged this task as Medium priority.

Notes:

  • this is happening with Z9K1 as well as Z6K1 ex

Change #1196439 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-10-06-225918 to 2025-10-14-194525

https://gerrit.wikimedia.org/r/1196439

Change #1196439 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-10-06-225918 to 2025-10-14-194525

https://gerrit.wikimedia.org/r/1196439

ecarg closed this task as Resolved.EditedNov 18 2025, 5:44 AM

Marking as resolved. This was a temporary bandaid but other occurrences in the code rendered similar error logs down the road. Additionally, was encouraged not to use optional chaining recently so those have since been removed.