You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2005/06/23 21:16:21 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs/identity IdentityConstraint.java
mrglavas 2005/06/23 12:16:20
Modified: java/src/org/apache/xerces/impl/xs/identity
IdentityConstraint.java
Log:
Fixing JIRA Issue #1078:
http://issues.apache.org/jira/browse/XERCESJ-1078
Fixing a possible NPE discovered by Kurt Riede.
Revision Changes Path
1.12 +2 -2 xml-xerces/java/src/org/apache/xerces/impl/xs/identity/IdentityConstraint.java
Index: IdentityConstraint.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/identity/IdentityConstraint.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- IdentityConstraint.java 6 Oct 2004 15:14:51 -0000 1.11
+++ IdentityConstraint.java 23 Jun 2005 19:16:20 -0000 1.12
@@ -194,7 +194,7 @@
* {selector} A restricted XPath ([XPath]) expression
*/
public String getSelectorStr() {
- return fSelector.toString();
+ return (fSelector != null) ? fSelector.toString() : null;
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org