Don't init l11n if no response

This commit is contained in:
Dennis Eichhorn 2017-10-27 21:54:47 +02:00
parent 5a225b781a
commit 18f7df45c3

View File

@ -87,7 +87,7 @@ class View extends ViewAbstract
$this->app = $app;
$this->request = $request;
$this->response = $response;
$this->l11n = $response->getHeader()->getL11n();
$this->l11n = isset($response) ? $response->getHeader()->getL11n() : null;
}
/**