We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a4d145 commit 5e75633Copy full SHA for 5e75633
AssetsBundle/Service/AssetsPicker.php
@@ -43,7 +43,7 @@ public function pickAssets($type)
43
throw new \LogicException(sprintf('Type "%s" is not defined!', $type));
44
}
45
46
- $route = $this->requestStack->getMasterRequest()->get('_route');
+ $route = $this->requestStack->getMasterRequest() ? $this->requestStack->getMasterRequest()->get('_route') : null;
47
48
$defaults = [];
49
$picked = [];
0 commit comments