Skip to content

Commit 5e75633

Browse files
committed
allow use default assets in commands
1 parent 5a4d145 commit 5e75633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AssetsBundle/Service/AssetsPicker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function pickAssets($type)
4343
throw new \LogicException(sprintf('Type "%s" is not defined!', $type));
4444
}
4545

46-
$route = $this->requestStack->getMasterRequest()->get('_route');
46+
$route = $this->requestStack->getMasterRequest() ? $this->requestStack->getMasterRequest()->get('_route') : null;
4747

4848
$defaults = [];
4949
$picked = [];

0 commit comments

Comments
 (0)