diff --git a/centreon-plugins/centreon/common/protocols/jmx/custom/jolokia.pm b/centreon-plugins/centreon/common/protocols/jmx/custom/jolokia.pm index d2dfaca51..fb1f83915 100644 --- a/centreon-plugins/centreon/common/protocols/jmx/custom/jolokia.pm +++ b/centreon-plugins/centreon/common/protocols/jmx/custom/jolokia.pm @@ -292,7 +292,8 @@ sub list_attributes { $v =~ s/^\s*//; print " = " . $v; } else { - if (my $scal = JMX::Jmx4Perl::Util->dump_scalar($val)) { + my $scal = JMX::Jmx4Perl::Util->dump_scalar($val); + if (defined($scal)) { print " = " . $scal . "\n"; } else { print " = undef\n"; @@ -367,4 +368,4 @@ Credentials to use for the target B. -=cut \ No newline at end of file +=cut