Skip to content

Commit 6e28f12

Browse files
committed
[BUGFIX] Prevent exception logging if there is no visitor available
1 parent 4204c92 commit 6e28f12

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎Classes/Domain/Service/ScoringService.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ public function __construct(?DateTime $time = null)
6363
*/
6464
public function calculateAndSetScoringFromEvent(AfterTrackingEvent $event): void
6565
{
66-
$this->calculateAndSetScoring($event->getVisitor());
66+
if ($event->getVisitor()->getUid() !== null) {
67+
$this->calculateAndSetScoring($event->getVisitor());
68+
}
6769
}
6870

6971
/**

0 commit comments

Comments
 (0)