From bf692c9e8c555d9bf8f092c63e7da9fc305ed458 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 19 Oct 2021 21:42:22 -0400 Subject: [PATCH] BitBucketStatus: address Use of uninitialized value in numeric eq (==) --- src/lib/Hydra/Plugin/BitBucketStatus.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Plugin/BitBucketStatus.pm b/src/lib/Hydra/Plugin/BitBucketStatus.pm index 72ed3b6b..3dcc639a 100644 --- a/src/lib/Hydra/Plugin/BitBucketStatus.pm +++ b/src/lib/Hydra/Plugin/BitBucketStatus.pm @@ -10,7 +10,7 @@ use Hydra::Helper::CatalystUtils; sub isEnabled { my ($self) = @_; - return $self->{config}->{enable_bitbucket_status} == 1; + return defined($self->{config}->{enable_bitbucket_status}) && $self->{config}->{enable_bitbucket_status} == 1; } sub toBitBucketState {