From a6e28e3fd3866342b6af95d8f84109f67c829a75 Mon Sep 17 00:00:00 2001 From: Gerhard Gonter <ggonter@gmail.com> Date: Fri, 29 Nov 2024 18:42:00 +0100 Subject: [PATCH] more robus query --- modules/util/Util/Monitoring.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/util/Util/Monitoring.pm b/modules/util/Util/Monitoring.pm index 8b2d640..6ac84dd 100644 --- a/modules/util/Util/Monitoring.pm +++ b/modules/util/Util/Monitoring.pm @@ -165,7 +165,7 @@ sub get_collection my $name= shift; my $col_handle= '_'. $name; - return $self->{$col_handle} if (exists($self->{$col_handle})); + return $self->{$col_handle} if (exists($self->{$col_handle}) && defined ($self->{$col_handle})); my $mon_cfg= $self->{mon_cfg}; my $paf= $mon_cfg->{'AgentDB'}; -- GitLab