diff options
Diffstat (limited to 'lib/ManaTools')
-rw-r--r-- | lib/ManaTools/MainDisplay.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ManaTools/MainDisplay.pm b/lib/ManaTools/MainDisplay.pm index 8bae4da4..d9f35aad 100644 --- a/lib/ManaTools/MainDisplay.pm +++ b/lib/ManaTools/MainDisplay.pm @@ -780,7 +780,7 @@ sub _loadCategories { ); $self->D("Load categories: title content is <<%s>>", $title); my $icon = $tmp->{icon}; - if ((substr( $icon, 0, 1) ne '/')) { + if (defined($icon) && (substr( $icon, 0, 1) ne '/')) { # icon with relative path? $icon = File::ShareDir::dist_file(ManaTools::Shared::distName(), $tmp->{icon}); } |