[Bug 186] New: NPE in DOM2XmlPullBuilder
[email protected] Fri, 9 Apr 2004 12:36:27 -0500 (EST)
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
http://www.extreme.indiana.edu/bugzilla/show_bug.cgi?id=186
Summary: NPE in DOM2XmlPullBuilder
Product: XmlPull.org
Version: 1.1.2
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P1
Component: Design
AssignedTo: [email protected]
ReportedBy: [email protected]
reported by Ian Sollars
Hi there. You're named as the author of
org.xmlpull.v1.dom2_builder.DOM2XmlPullBuilder, so I thought you might be
interested in this. Basically, attempting to parse the following XML throws
a NullPointerException in declareNamespaces. The XMLPull spec says that
getNamespacePrefix(i) may be null if namespace i is the default, but you do
a .equals comparison on it in your inner loop.
Attempting to parse this XML should illustrate the problem (if it doesn't,
then I'm just making myself look stupid
<stream:stream from='jabber.org' id='AE84829FCBA14'
xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams'>
<message
from='[email protected]/pest'
to='[email protected]/bugme' id='F8w5Y-4' type='chat'>
<body>This packet has a gradient extension.</body>
<grad:directive-set xmlns:grad='http://ex-337.net/xmpp/gradient'>
<grad:directive grad:appendto='/svg:svg'
xmlns:svg='http://www.w3.org/2000/svg'>
<rect fill='none' height='100' stroke='black' stroke-width='10' width='100'
x='1652'
xmlns='http://www.w3.org/2000/svg' y='1402'/>
</grad:directive>
</grad:directive-set>
</message>
</stream:stream>
The NPE is at DOM2XmlPullBuilder.java:183.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/2U_rlB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/xmlpull-dev/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/