fix: use nullsafe operator for project attribute retrieval in Action class

This commit is contained in:
shimon 2025-12-25 19:07:51 +02:00
parent d53090647b
commit f9efdfd98e

View file

@ -382,7 +382,7 @@ abstract class Action extends DatabasesAction
->from($queueForEvents)
->trigger();
if (!empty($queueForEvents->getProject()->getAttribute('webhooks', []))) {
if (!empty($queueForEvents->getProject()?->getAttribute('webhooks', []))) {
$queueForWebhooks
->from($queueForEvents)
->trigger();