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
Unknown Object (File)
Thu, Jan 30, 2:02 AM
Unknown Object (File)
Wed, Jan 29, 8:55 AM
Unknown Object (File)
Sat, Jan 25, 7:20 AM
Unknown Object (File)
Sat, Jan 25, 7:20 AM
Unknown Object (File)
Tue, Jan 14, 8:21 AM
Unknown Object (File)
Dec 24 2024, 3:58 AM
Unknown Object (File)
Dec 17 2024, 10:07 AM
Unknown Object (File)
Dec 16 2024, 5:48 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
Branch
null1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24223
Build 33363: Run Core Tests
Build 33362: arc lint + arc unit

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.