Page MenuHomeDevCentral

Fix getItemProjectsPHIDs null exception
ClosedPublic

Authored by dereckson on Jul 11 2016, 02:20.
Tags
None
Referenced Files
F11801311: D488.diff
Tue, Sep 23, 16:03
Unknown Object (File)
Mon, Sep 22, 09:17
Unknown Object (File)
Mon, Sep 22, 09:17
Unknown Object (File)
Mon, Sep 22, 06:36
Unknown Object (File)
Fri, Sep 19, 07:34
Unknown Object (File)
Fri, Sep 19, 01:44
Unknown Object (File)
Wed, Sep 17, 08:21
Unknown Object (File)
Mon, Sep 8, 07:32
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.