From 7f4ea966c0b1b623bcba8beb892737949457f6c9 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 3 May 2023 10:58:22 +0000 Subject: [PATCH] Bug 30367: (follow-up) Same adjustment for gitlab This adds the same update for gitlab code. I was unable to trigger the error, however, I confirm searching for 'PayPal' returns a result after this patch as well as before. --- plugins/plugins-home.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/plugins-home.pl b/plugins/plugins-home.pl index 133358aecf..5c9985f135 100755 --- a/plugins/plugins-home.pl +++ b/plugins/plugins-home.pl @@ -101,7 +101,9 @@ if ($plugins_enabled) { my $description = $result->{description} // ''; my $web_url = $result->{web_url}; my $releases_url = "https://gitlab.com/api/v4/projects/$project_id/releases"; - my @releases = @{ from_json( get($releases_url) ) }; + my $releases_info = get($releases_url); + next unless $releases_info; + my @releases = @{ from_json( $releases_info ) }; if ( scalar @releases > 0 ) { -- 2.30.2