summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/TodoCommentsScript.java
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2011-09-07 18:01:38 +0200
committerDavid A. Madore <david+git@madore.org>2011-09-07 18:01:38 +0200
commit457ce3fb7d0bd2198d1397912093cc1f99befe26 (patch)
treecd102997f1e73fe2fb6bbce9402e50861f244a12 /org/madore/damlengine/TodoCommentsScript.java
parent9d7357116a9d47c1dacd2bddfb1bbdea50f3e5fb (diff)
downloaddamlengine-457ce3fb7d0bd2198d1397912093cc1f99befe26.tar.gz
damlengine-457ce3fb7d0bd2198d1397912093cc1f99befe26.tar.bz2
damlengine-457ce3fb7d0bd2198d1397912093cc1f99befe26.zip
Use HTML5 elements for header, hgroup, nav(bar), footer.
Diffstat (limited to 'org/madore/damlengine/TodoCommentsScript.java')
-rw-r--r--org/madore/damlengine/TodoCommentsScript.java2
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);