Page MenuHomeDevCentral

Fix null exception when Phabricator object is private
ClosedPublic

Authored by dereckson on Jan 28 2017, 00:17.
Tags
None
Referenced Files
F2847305: D873.id2217.diff
Wed, Apr 24, 14:45
Unknown Object (File)
Tue, Apr 23, 04:29
Unknown Object (File)
Mon, Apr 22, 12:53
Unknown Object (File)
Sun, Apr 21, 21:21
Unknown Object (File)
Sun, Apr 21, 08:28
Unknown Object (File)
Fri, Apr 19, 15:22
Unknown Object (File)
Thu, Apr 18, 23:47
Unknown Object (File)
Thu, Apr 18, 00:16
Subscribers
None

Details

Summary

When an object like a paste is private and can't be reached by the bot
account used to fetch Phabricator information, a null exception occurs
in PhabricatorStory::getItemProjectsPHIDsThroughApplicationSearch().

This change handles the case an API query doesn't contain the
required information.

Fixes T1138.

Test Plan

Fire again the notification.

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Jan 28 2017, 00:17
This revision was automatically updated to reflect the committed changes.