Fixed linenumbering error on building motion pdf (checks if element is null).

This commit is contained in:
Emanuel Schütze 2019-03-04 15:01:00 +01:00
parent 4174f70d2b
commit 22783f876b

View File

@ -170,7 +170,11 @@ export class LinenumberingService {
'DEL',
'STRIKE'
];
return inlineElements.indexOf(element.nodeName) > -1;
if (element) {
return inlineElements.indexOf(element.nodeName) > -1;
} else {
return false;
}
}
/**