Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4705] Android: Reading XML document doctype property causes NPE when there is no doctype

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-07-27T15:09:45.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-30, Release 1.8.0
ComponentsAndroid
Labelsparity
ReporterBill Dawson
AssigneeBill Dawson
Created2011-07-18T10:24:38.000+0000
Updated2011-08-26T15:35:13.000+0000

Description

Fail case app.js:
var doc = Ti.XML.parseString("<a/>");
var x = doc.doctype; // NPE

Comments

  1. Bill Dawson 2011-07-26

    Pull request ready: https://github.com/appcelerator/titanium_mobile/pull/283
  2. Bill Dawson 2011-07-27

    Re-opened only because the drillbit test for a null doctype is no longer valid since opie added a doctype to nodes.xml
  3. Natalie Huynh 2011-08-26

    Tested Drillbit XML with: version=1.8.0 timestamp=08/26/11 14:21 githash=0e2031e Android Emulator 2.1 and 3.2

JSON Source