Fix for NPE
This commit is contained in:
parent
d2cfbb40b7
commit
48f8902bc7
1 changed files with 1 additions and 1 deletions
|
@ -1164,7 +1164,7 @@ public class TextParser extends Parser {
|
|||
getTextSP().readStyle(sStyleName,info);
|
||||
getTextSP().readParentStyle(sStyleName,info);
|
||||
Element newNode = node;
|
||||
if (info.hasAttributes() || !"span".equals(info.sTagName)) {
|
||||
if (info.hasAttributes() || info.sTagName != null && !"span".equals(info.sTagName)) {
|
||||
// We (probably) need to create a new element
|
||||
newNode = converter.createElement(info.sTagName);
|
||||
writeStyle(info,newNode);
|
||||
|
|
Loading…
Add table
Reference in a new issue