Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2010-02-23 16:17:09 -0500
committerpelder2010-02-23 16:17:09 -0500
commitdf29b673e8b388672247d439704962d7e873e1a2 (patch)
tree2693ff6fd64869e5c85655bbbd4d056ec2d48b48
parent0ce9e3dee62395255e4840529da1a710958b5d4e (diff)
downloadorg.eclipse.jet-df29b673e8b388672247d439704962d7e873e1a2.tar.gz
org.eclipse.jet-df29b673e8b388672247d439704962d7e873e1a2.tar.xz
org.eclipse.jet-df29b673e8b388672247d439704962d7e873e1a2.zip
[303674] Possible to add Null Children while Evaluating XPath Expression - Results in NullPointerException
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/inspectors/EObjectInspector.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/inspectors/EObjectInspector.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/inspectors/EObjectInspector.java
index 1bfc092..56834ae 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/inspectors/EObjectInspector.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/inspectors/EObjectInspector.java
@@ -705,7 +705,7 @@ public class EObjectInspector implements IElementInspector, INodeInspectorExtens
{
result.addAll((List)eObject.eGet(feature));
}
- else
+ else if(eObject.eIsSet(feature))
{
result.add(eObject.eGet(feature));
}

Back to the top