Page MenuHomeDevCentral

Fix null exception when Phabricator repository is private
ClosedPublic

Authored by dereckson on Jan 28 2017, 00:01.
Tags
None
Referenced Files
F21251749: D872.diff
Tue, Jan 20, 19:38
F21224198: D872.id.diff
Tue, Jan 20, 13:09
Unknown Object (File)
Mon, Jan 19, 14:12
Unknown Object (File)
Sun, Jan 18, 22:10
Unknown Object (File)
Fri, Jan 16, 01:00
Unknown Object (File)
Thu, Jan 15, 22:37
Unknown Object (File)
Thu, Jan 15, 20:49
Unknown Object (File)
Tue, Jan 13, 06:42
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.