Merge pull request #4453 from emanuelschuetze/fixPdf

Fixed linenumbering error on building motion pdf (checks if element i…
This commit is contained in:
Emanuel Schütze 2019-03-04 15:26:49 +01:00 committed by GitHub
commit 37f9d5c94a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}
}
/**