commit | f20b464ec3fae41b7a2b3dc3b4368fe555025d0f | [log] [tgz] |
---|---|---|
author | mgandhi <mgandhi> | Tue Aug 18 08:22:36 2009 +0000 |
committer | mgandhi <mgandhi> | Tue Aug 18 08:22:36 2009 +0000 |
tree | 10ce9e3310bea87a93807384f16ce7b6509526ce | |
parent | d39310aad17e6bf49e1e1a1467926640768e1c2f [diff] |
[262765] [xpath2] resolved a null pointer exception in AttrType.java https://bugs.eclipse.org/bugs/show_bug.cgi?id=262765
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AttrType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AttrType.java index 04a052c..4db5eb9 100644 --- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AttrType.java +++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AttrType.java
@@ -83,8 +83,7 @@ PSVIAttrNSImpl psviAttr = (PSVIAttrNSImpl) _value; XSTypeDefinition typeDef = psviAttr.getTypeDefinition(); - if (typeDef != null - && typeDef.getNamespace().equals(XSCtrLibrary.XML_SCHEMA_NS)) { + if (typeDef != null && XSCtrLibrary.XML_SCHEMA_NS.equals(typeDef.getNamespace())) { Object schemaTypeValue = getTypedValueForPrimitiveType(typeDef); if (schemaTypeValue != null) { rs.add((AnyType) schemaTypeValue);