diff --git a/classes/Kohana/Debugtoolbar.php b/classes/Kohana/Debugtoolbar.php index ca4b365..d302f9b 100644 --- a/classes/Kohana/Debugtoolbar.php +++ b/classes/Kohana/Debugtoolbar.php @@ -566,7 +566,7 @@ abstract class Kohana_Debugtoolbar { return FALSE; } - if ( ! empty($config->excluded_routes) && in_array(Route::name(Request::initial()->route()), $config->excluded_routes)) + if ( ! empty($config->excluded_routes) && !is_null(Request::initial()->route()) && in_array(Route::name(Request::initial()->route()), $config->excluded_routes)) { return FALSE; }