* handle possible null values

* only update caches for enabled services
This commit is contained in:
Dávid Danyi
2018-09-17 17:24:46 +02:00
parent 66bc94037d
commit 15455f648e
3 changed files with 11 additions and 6 deletions

View File

@@ -223,7 +223,9 @@ class JiraCollectorService
* with JIRA jql at the moment.
*/
return array_filter($hydratedResult, function(WatchedIssue $issue) use ($members) {
return !in_array($issue->getComment()->getSignum(), $members);
return null !== $issue->getComment()
? !in_array($issue->getComment()->getSignum(), $members)
: false;
});
}