From 4a15e8b3b36dcde234ef2e068d931a59e0ce1d4e Mon Sep 17 00:00:00 2001 From: dklawren Date: Thu, 28 Jun 2018 18:02:19 -0400 Subject: Bug 1469373 - Phabbugz fails with undefined error when phab user without linked BMO account accepts BMO linked revision --- extensions/PhabBugz/lib/Feed.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/PhabBugz') diff --git a/extensions/PhabBugz/lib/Feed.pm b/extensions/PhabBugz/lib/Feed.pm index 72829f179..41a330787 100644 --- a/extensions/PhabBugz/lib/Feed.pm +++ b/extensions/PhabBugz/lib/Feed.pm @@ -477,7 +477,7 @@ sub process_revision_change { phids => \@accepted_phids } ); - @accepted_user_ids = map { $_->bugzilla_user->id } @$phab_users; + @accepted_user_ids = map { $_->bugzilla_user->id } grep { defined $_->bugzilla_user } @$phab_users; } if ( @denied_phids ) { @@ -486,7 +486,7 @@ sub process_revision_change { phids => \@denied_phids } ); - @denied_user_ids = map { $_->bugzilla_user->id } @$phab_users; + @denied_user_ids = map { $_->bugzilla_user->id } grep { defined $_->bugzilla_user } @$phab_users; } my %reviewers_hash = map { $_->name => 1 } @{ $revision->reviewers }; -- cgit v1.2.3-24-g4f1b