diff options
Diffstat (limited to 'org/madore/damlengine/TodoExtraStyleOrScriptElement.java')
-rw-r--r-- | org/madore/damlengine/TodoExtraStyleOrScriptElement.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org/madore/damlengine/TodoExtraStyleOrScriptElement.java b/org/madore/damlengine/TodoExtraStyleOrScriptElement.java index 9b4a6c6..d285d8f 100644 --- a/org/madore/damlengine/TodoExtraStyleOrScriptElement.java +++ b/org/madore/damlengine/TodoExtraStyleOrScriptElement.java @@ -37,7 +37,7 @@ public final class TodoExtraStyleOrScriptElement extends TodoDefaultElement { else ctx.gc.styleContent.append(content); Node ws = node.getNextSibling(); - if ( ( ws.getNodeType() == Node.TEXT_NODE + if ( ws != null && ( ws.getNodeType() == Node.TEXT_NODE || ws.getNodeType() == Node.CDATA_SECTION_NODE ) && Pattern.matches("^\\s*$",((CharacterData)ws).getData()) ) node.getParentNode().removeChild(ws); |