Skip to content

Commit

Permalink
EZEE-1889: SessionBackup Listener returns error when Session object d…
Browse files Browse the repository at this point in the history
…oesn't exist (#109)
  • Loading branch information
natanael89 authored and andrerom committed Feb 26, 2018
1 parent 5cbf22c commit 4625244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventListener/SessionBackup.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function onKernelRequest(GetResponseEvent $event)
{
$session = $event->getRequest()->getSession();

if (!$session->isStarted()) {
if ($session === null || !$session->isStarted()) {
return;
}

Expand Down

0 comments on commit 4625244

Please sign in to comment.