* @param App $a App
*
* @return string
+ * @throws ImagickException
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws Exception
*/
function match_content(App $a)
{
$profile = $msearch->results[$i];
// Already known contact
- if (Contact::getIdForURL($profile->url, local_user(), true)) {
+ if (!$profile || Contact::getIdForURL($profile->url, local_user(), true)) {
continue;
}