Page MenuHomeDevCentral

Fix null exception when Phabricator repository is private
ClosedPublic

Authored by dereckson on Jan 28 2017, 00:01.
Tags
None
Referenced Files
F2831516: D872.id2216.diff
Fri, Apr 19, 16:45
Unknown Object (File)
Thu, Apr 18, 16:43
Unknown Object (File)
Thu, Apr 18, 01:20
Unknown Object (File)
Mon, Apr 15, 05:17
Unknown Object (File)
Sun, Apr 14, 11:31
Unknown Object (File)
Sat, Apr 13, 22:31
Unknown Object (File)
Wed, Apr 10, 14:37
Unknown Object (File)
Tue, Apr 9, 06:38
Subscribers
None

Details

Summary

When a repository is private and can't be reached by the bot account
used to fetch Phabricator information, a null exception occurs in
PhabricatorStory::getRepositoryPHID method.

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

Fixes T1136.

Test Plan

Fire again the notification.

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Jan 28 2017, 00:02
This revision was automatically updated to reflect the committed changes.