summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2007-02-01 10:38:17 (EST)
committerpelder2007-02-01 10:38:17 (EST)
commit39e65e11149c721cedd1db0a3905e8a8dcaf0932 (patch)
tree00be85fb8ccff93161eff453db4af5fc21ca0d70
parenta9de80fa6df1045153de6289d61ac1dc33ab52c8 (diff)
downloadorg.eclipse.jet-39e65e11149c721cedd1db0a3905e8a8dcaf0932.zip
org.eclipse.jet-39e65e11149c721cedd1db0a3905e8a8dcaf0932.tar.gz
org.eclipse.jet-39e65e11149c721cedd1db0a3905e8a8dcaf0932.tar.bz2
[172506] Fix NPE.
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/DumpTag.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/DumpTag.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/DumpTag.java
index 6bd3c57..cdc28d7 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/DumpTag.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/DumpTag.java
@@ -200,6 +200,9 @@ public class DumpTag extends AbstractEmptyTag {
boolean textEncountered = false;
for (int i = 0; i < children.length; i++)
{
+ if(children[i] == null) {
+ continue;
+ }
INodeInspector childInspector = InspectorManager.getInstance().getInspector(children[i]);
textEncountered = textEncountered || childInspector.getNodeKind(children[i]) == NodeKind.TEXT;