Error message

Notice: Trying to get property of non-object in rp_elasticsearch_rp_search_header_content_type_render() (line 38 of /var/www/html/sites/all/modules/custom/rp_elasticsearch/plugins/content_types/rp_search_header.inc).