diff options
Diffstat (limited to 'org/madore/damlengine/TodoCommentsScript.java')
-rw-r--r-- | org/madore/damlengine/TodoCommentsScript.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org/madore/damlengine/TodoCommentsScript.java b/org/madore/damlengine/TodoCommentsScript.java index eb250e8..fbe0bbe 100644 --- a/org/madore/damlengine/TodoCommentsScript.java +++ b/org/madore/damlengine/TodoCommentsScript.java @@ -15,7 +15,7 @@ public final class TodoCommentsScript extends TodoElement { public void handle() { if ( ctx.gc.commentsJSParam == null ) { 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); |