Page MenuHomePhabricator

Add a missing "null" check when rebuilding old/new diff content
ClosedPublic

Authored by epriestley on Apr 25 2020, 4:21 PM.
Tags
None
Referenced Files
F18519441: D21169.diff
Fri, Sep 5, 4:57 PM
F18086678: D21169.id.diff
Aug 5 2025, 11:20 PM
F18081622: D21169.id.diff
Aug 5 2025, 1:12 AM
F18081027: D21169.id50405.diff
Aug 4 2025, 10:25 PM
F17995060: D21169.id50404.diff
Aug 2 2025, 3:31 AM
F17986587: D21169.diff
Aug 1 2025, 9:46 PM
F17940547: D21169.id50405.diff
Jul 31 2025, 4:31 AM
F17849692: D21169.id.diff
Jul 27 2025, 9:00 AM
Subscribers
None

Details

Summary

See https://discourse.phabricator-community.org/t/exceptions-when-viewing-diffs/3787. This list may include null values.

Until PHP 7.4, $x = null; echo $x['y']; does not emit a warning. Sneaky!

Test Plan
  • Traced null values from reparseHunksForSpecialAttributes(), saw them no longer incorporated into corpus bodies.
  • This has some amount of test coverage.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Apr 25 2020, 4:22 PM
epriestley requested review of this revision.
This revision was automatically updated to reflect the committed changes.