[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);