Error message

Notice: Trying to get property of non-object in _career_records_count_positions() (line 308 of /mnt/persist/www/docroot/sites/all/modules/custom/career_records/career_records.module).