Неперехваченное исключение

Ошибка (TypeError): Argument 1 passed to BasicPhpExtension::getHeaderColor() must be an instance of umiHierarchyElement, null given, called in /home/w/webenergyit/new_webenergy/public_html/classes/system/subsystems/umiTemplaters/engine/PhpTemplateEngine.php on line 81