From 24eeeb1b81b9168cf0454f66c66f2f4e2f23c26a Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Sun, 6 Nov 2016 14:50:21 +0000 Subject: [PATCH] Issue #2819219 by BR0kEN: SystemMainBlock could lead to fatal error in case if "setMainContent" method will not be called --- core/modules/system/src/Plugin/Block/SystemMainBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/system/src/Plugin/Block/SystemMainBlock.php b/core/modules/system/src/Plugin/Block/SystemMainBlock.php index beba38db4a8d..d54a1cae5a32 100644 --- a/core/modules/system/src/Plugin/Block/SystemMainBlock.php +++ b/core/modules/system/src/Plugin/Block/SystemMainBlock.php @@ -20,7 +20,7 @@ class SystemMainBlock extends BlockBase implements MainContentBlockPluginInterfa * * @var array */ - protected $mainContent; + protected $mainContent = []; /** * {@inheritdoc} -- GitLab