Inconsistent support for null rawName/QName
-------------------------------------------
Key: XERCESJ-1192
URL: http://issues.apache.org/jira/browse/XERCESJ-1192
Project: Xerces2-J
Issue Type: Improvement
Components: Serialization
Affects Versions: 2.8.1
Reporter: Derek Denny-Brown
Priority: Minor
XMLSerializer.startElement(...) supports the rawName/QName == null, but the
equivalent attribute value is not allowed to be null. Below is the offending
code:
name = attrs.getQName( i );
if (name != null && name.length() == 0) {
here is my suggested fix:
name = attrs.getQName( i );
if (name == null || name.length() == 0) {
That makes the logic equivalent to the element name logic a few lines above.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]