diff --git a/lib/activityhandlerplugin.php b/lib/activityhandlerplugin.php index cb8a6b9bc9..b826a705ac 100644 --- a/lib/activityhandlerplugin.php +++ b/lib/activityhandlerplugin.php @@ -325,11 +325,7 @@ abstract class ActivityHandlerPlugin extends Plugin return true; } - try { - $object = $this->activityObjectFromNotice($notice); - } catch (NoResultException $e) { - $object = null; // because getKV returns null on failure - } + $object = $this->activityObjectFromNotice($notice); return false; }