File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
lib/internal/Magento/Framework/ObjectManager/Resetter Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 9
9
10
10
use Magento \Framework \Component \ComponentRegistrar ;
11
11
use Magento \Framework \Component \ComponentRegistrarInterface ;
12
+ use Magento \Framework \Exception \LocalizedException ;
12
13
use Magento \Framework \ObjectManager \ResetAfterRequestInterface ;
13
14
use Magento \Framework \ObjectManagerInterface ;
14
15
use WeakMap ;
@@ -53,6 +54,9 @@ public function __construct(
53
54
continue ;
54
55
}
55
56
$ resetData = \json_decode (\file_get_contents ($ resetPath ), true );
57
+ if (!$ resetData ) {
58
+ throw new LocalizedException (__ ('Error parsing %1 ' , $ resetPath ));
59
+ }
56
60
$ this ->classList = array_replace ($ this ->classList , $ resetData );
57
61
}
58
62
$ this ->resetAfterWeakMap = new WeakMap ;
You can’t perform that action at this time.
0 commit comments