Page MenuHomeDevCentral

Fix getItemProjectsPHIDs null exception
ClosedPublic

Authored by dereckson on Jul 11 2016, 02:20.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 00:58
Unknown Object (File)
Sun, Nov 10, 00:58
Unknown Object (File)
Sat, Nov 9, 12:03
Unknown Object (File)
Sat, Nov 9, 12:00
Unknown Object (File)
Sat, Nov 9, 11:57
Unknown Object (File)
Sat, Nov 9, 10:51
Unknown Object (File)
Thu, Nov 7, 15:31
Unknown Object (File)
Thu, Nov 7, 14:52
Subscribers
None

Details

Summary

Phabricator API can sometimes return an empty array.
In such case, we don't have any projects to return.

This fix the following issue:
Trying to get property of non-object in
PhabricatorStory::getItemProjectsPHIDs method

Fixes T916.

Test Plan

Fire again the failed notification.

Diff Detail

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

Event Timeline

dereckson retitled this revision from to Fix getItemProjectsPHIDs null exception.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: dereckson.
dereckson edited edge metadata.

Looks good to me:

02:06:35 < Wearg> dereckson shifted T789: Rename Kal*i*x in Sandlayth from the S1 Nasqueron space to the S2 Nasqueron internal space.

This revision is now accepted and ready to land.Jul 11 2016, 02:25
This revision was automatically updated to reflect the committed changes.