Page MenuHomeDevCentral

Trying to get property of non-object in PhabricatorStory::getItemProjectsPHIDs method
Closed, ResolvedPublic

Description

This fatal error occurs when a task is created without any project tag attached to.

[2016-07-11 01:34:52] production.INFO: [Gate] New payload. {"service":"Phabricator","door":"Nasqueron"} 
[2016-07-11 01:34:53] production.ERROR: exception 'ErrorException' with message 'Trying to get property of non-object' in /var/wwwroot/default/app/Phabricator/
PhabricatorStory.php:189
Stack trace:
#0 /var/wwwroot/default/app/Phabricator/PhabricatorStory.php(189): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Trying to get p...', '/var
/wwwroot/de...', 189, Array)
#1 /var/wwwroot/default/app/Phabricator/PhabricatorStory.php(134): Nasqueron\Notifications\Phabricator\PhabricatorStory->getItemProjectsPHIDs('maniphest.query'
, 'PHID-TASK-kupty...')
#2 /var/wwwroot/default/app/Phabricator/PhabricatorStory.php(235): Nasqueron\Notifications\Phabricator\PhabricatorStory->getProjectsPHIDs()
#3 /var/wwwroot/default/app/Phabricator/PhabricatorStory.php(223): Nasqueron\Notifications\Phabricator\PhabricatorStory->attachProjects()
#4 /var/wwwroot/default/app/Analyzers/Phabricator/PhabricatorPayloadAnalyzer.php(101): Nasqueron\Notifications\Phabricator\PhabricatorStory->getProjects()
#5 /var/wwwroot/default/app/Notifications/PhabricatorNotification.php(61): Nasqueron\Notifications\Analyzers\Phabricator\PhabricatorPayloadAnalyzer->getGroup()
#6 /var/wwwroot/default/app/Notifications/PhabricatorNotification.php(38): Nasqueron\Notifications\Notifications\PhabricatorNotification->getGroup()
#7 /var/wwwroot/default/app/Jobs/FirePhabricatorNotification.php(52): Nasqueron\Notifications\Notifications\PhabricatorNotification->__construct('Nasqueron', O
bject(Nasqueron\Notifications\Phabricator\PhabricatorStory))
#8 /var/wwwroot/default/app/Jobs/FirePhabricatorNotification.php(38): Nasqueron\Notifications\Jobs\FirePhabricatorNotification->createNotification()
#9 /var/wwwroot/default/app/Listeners/NotificationListener.php(48): Nasqueron\Notifications\Jobs\FirePhabricatorNotification->handle()
#10 [internal function]: Nasqueron\Notifications\Listeners\NotificationListener->onPhabricatorPayload(Object(Nasqueron\Notifications\Events\PhabricatorPayloadE
vent))