Error: Call to a member function getCode() on null: Компонент не найден