Skip to content

Commit

Permalink
Merge pull request #1799 from reyjrar/reyjrar/undef_deref_author_email
Browse files Browse the repository at this point in the history
Fix undefined deref in author email
  • Loading branch information
oalders committed Nov 19, 2016
2 parents 91f635f + 3e7997a commit 44a0df5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/MetaCPAN/Web/Model/ReleaseInfo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ sub groom_contributors {
$authors = [ grep { $_ ne 'unknown' } @$authors ];

my $author_info = {
email =>
[ lc "$release->{author}\@cpan.org", @{ $author->{email} }, ],
email => [
lc "$release->{author}\@cpan.org",
@{ $author->{email} || [] },
],
name => $author->{name},
};
my %seen = map { $_ => $author_info }
Expand Down

0 comments on commit 44a0df5

Please sign in to comment.