From b3815881995c5438e8daa24588cf712c0eb20b38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 17 Jul 2023 16:54:41 +0200 Subject: [PATCH] fix: Avoid failing due to uninitialized acces of systemInstance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/Importer/BoardImportService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/Importer/BoardImportService.php b/lib/Service/Importer/BoardImportService.php index 657f938b2..ee1ff7dc7 100644 --- a/lib/Service/Importer/BoardImportService.php +++ b/lib/Service/Importer/BoardImportService.php @@ -61,7 +61,7 @@ class BoardImportService { private ICommentsManager $commentsManager; private IEventDispatcher $eventDispatcher; private string $system = ''; - private ?ABoardImportService $systemInstance; + private ?ABoardImportService $systemInstance = null; private array $allowedSystems = []; /** * Data object created from config JSON