Page MenuHomePhabricator

Fix an invalid index access for synthetic lint inline comments from Harbormaster
ClosedPublic

Authored by epriestley on Apr 27 2020, 9:18 PM.
Tags
None
Referenced Files
F18228863: D21178.id.diff
Wed, Aug 20, 8:16 AM
F18222715: D21178.diff
Tue, Aug 19, 9:34 PM
F18106752: D21178.id50433.diff
Sun, Aug 10, 11:19 PM
F18106557: D21178.id50432.diff
Sun, Aug 10, 11:08 PM
F18101048: D21178.diff
Sat, Aug 9, 12:17 PM
F18098523: D21178.diff
Fri, Aug 8, 8:44 PM
F17950696: D21178.id50432.diff
Fri, Aug 1, 12:38 AM
F17942107: D21178.diff
Thu, Jul 31, 6:16 AM
Subscribers
None

Details

Summary

Ref T13524. If a Harbormaster lint message has no line number (which is permitted), we try to access an invalid index here. This is an exception after D21044.

Treat comments with no line number as unchanged. These comments do not have "ghost" behavior and do not port across diffs.

Test Plan
  • Used "harbormaster.sendmessage" to submit lint with no line number on a changeset.
  • Viewed changeset.
    • Before patch: "Undefined index: <null>" error.
    • After patch: Clean changeset with lint message.

Screen Shot 2020-04-27 at 2.17.38 PM.png (236×856 px, 18 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable