i fixed it, just add this line
if (isset($item->author) && is_object($item->author->profile) && isset($item->author->profile->id)) {
if (isset($item->author) && is_object($item->author->profile) && isset($item->author->profile->id)) {