You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/05/20 09:26:25 UTC
DO NOT REPLY [Bug 9243] New: -
Schema CM API : NullPointerException
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9243>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9243
Schema CM API : NullPointerException
Summary: Schema CM API : NullPointerException
Product: Xerces2-J
Version: 2.0.1
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: XML Schema Structures
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: george@sync.ro
When trying to get an XSModel from an ASModel for a schema without a specified
namespace a NullPointerException is thrown. The problem seems to be due to the
namespace value which is passed as null and in SymbolHash it gets as key
parameter and hashCode is called on this, thus throwing the
NullPointerException.
I added some code in SynbolHash at the begining of put, search, and get methods
to work this out to be able to test further, but I do not think this is the
best way to handle this:
if (key == null) {
key = "";
}
Test file: xml-xerces/java/data/personal.xsd
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org