Call to a member function getBranch() on null

Array ( [0] => Array ( [file] => /var/www/hispasonic.com/framework/kernel/Dispatcher.php [line] => 308 [function] => view [class] => AdController [type] => -> ) [1] => Array ( [file] => /var/www/hispasonic.com/apps/hispasonic/interfaces/frontend/webroot/index.php [line] => 38 [function] => dispatch [class] => SonicFramework\Dispatcher [type] => -> ) )