diff --git a/misc-scripts/xref_mapping/XrefParser/BaseParser.pm b/misc-scripts/xref_mapping/XrefParser/BaseParser.pm index f43ff6ff55cbbd32e7379030e677ea03eea0c054..b828330cc89fd0475c8663cbb8bc59ebc448d374 100644 --- a/misc-scripts/xref_mapping/XrefParser/BaseParser.pm +++ b/misc-scripts/xref_mapping/XrefParser/BaseParser.pm @@ -1887,7 +1887,7 @@ sub add_xref { # If the description is more than 255 characters, chop it off and add # an indication that it has been truncated to the end of it. - if ( length($description) > 255 ) { + if (defined($description) && (length($description) > 255 ) ) { my $truncmsg = ' /.../'; substr( $description, 255 - length($truncmsg), length($truncmsg), $truncmsg );