From 4462c8562571ec06fdf6ac2dbb5f171ce7e7c90e Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 10 Jul 2017 10:19:46 -0400 Subject: Bug 1379632 - Error is thrown by update_project_members.pl when Phabricator returns a null value for a bmo user id search --- extensions/PhabBugz/lib/Util.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extensions/PhabBugz') diff --git a/extensions/PhabBugz/lib/Util.pm b/extensions/PhabBugz/lib/Util.pm index 124de6faf..cc26f4d89 100644 --- a/extensions/PhabBugz/lib/Util.pm +++ b/extensions/PhabBugz/lib/Util.pm @@ -230,7 +230,8 @@ sub get_members_by_bmo_id { my @phab_ids; foreach my $user (@{ $result->{result} }) { - push(@phab_ids, $user->{phid}); + push(@phab_ids, $user->{phid}) + if ($user->{phid} && $user->{phid} =~ /^PHID-USER/); } return \@phab_ids; -- cgit v1.2.3-24-g4f1b