* handle possible null values
* only update caches for enabled services
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user