check for valid data before decoding from JSON, undef still exists
This commit is contained in:
parent
cbc830123a
commit
b65c7d4d12
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ sub get {
|
|||
my $self = shift;
|
||||
my $name = shift;
|
||||
if ($name eq "parameters") {
|
||||
if (exists $self->{_data}{parameters}) {
|
||||
if ($self->{_data}{parameters}) {
|
||||
my $parameters = JSON::decode_json($self->{_data}{$name});
|
||||
return $parameters->{parameters};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue