From 462524402629df98ff553156526f097a9d85a6d0 Mon Sep 17 00:00:00 2001 From: Jacek Foremski Date: Mon, 26 Feb 2018 16:47:57 +0100 Subject: [PATCH] EZEE-1889: SessionBackup Listener returns error when Session object doesn't exist (#109) --- EventListener/SessionBackup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EventListener/SessionBackup.php b/EventListener/SessionBackup.php index dffc2be..bdd8524 100644 --- a/EventListener/SessionBackup.php +++ b/EventListener/SessionBackup.php @@ -25,7 +25,7 @@ public function onKernelRequest(GetResponseEvent $event) { $session = $event->getRequest()->getSession(); - if (!$session->isStarted()) { + if ($session === null || !$session->isStarted()) { return; }