Fixed linenumbering error on building motion pdf (checks if element is null).
This commit is contained in:
parent
4174f70d2b
commit
22783f876b
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user