From 7e188433a1940421499a7c135af85fd403ce6627 Mon Sep 17 00:00:00 2001 From: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com> Date: Fri, 9 Jan 2026 16:42:39 +0100 Subject: [PATCH] fix(session): handle null logger Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com> --- lib/private/Session/Internal.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php index ece5ba61b5da3..5949471965bca 100644 --- a/lib/private/Session/Internal.php +++ b/lib/private/Session/Internal.php @@ -15,6 +15,7 @@ use OCP\Session\Exceptions\SessionNotAvailableException; use Psr\Log\LoggerInterface; use function call_user_func_array; +use function OCP\Log\logger; /** * Class Internal @@ -194,7 +195,7 @@ public function trapError(int $errorNumber, string $errorString) { private function invoke(string $functionName, array $parameters = [], bool $silence = false) { try { return $this->monitorAndLog( - $this->logger, + $this->logger ?? logger('core'), $functionName, function () use ($silence, $functionName, $parameters) { if ($silence) {