[TIMOB-4705] Android: Reading XML document doctype property causes NPE when there is no doctype
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-07-27T15:09:45.000+0000 |
| Affected Version/s | Release 1.8.0 |
| Fix Version/s | Sprint 2011-30, Release 1.8.0 |
| Components | Android |
| Labels | parity |
| Reporter | Bill Dawson |
| Assignee | Bill Dawson |
| Created | 2011-07-18T10:24:38.000+0000 |
| Updated | 2011-08-26T15:35:13.000+0000 |
Description
Fail case app.js:
var doc = Ti.XML.parseString("<a/>");
var x = doc.doctype; // NPE
Pull request ready: https://github.com/appcelerator/titanium_mobile/pull/283
Re-opened only because the drillbit test for a null doctype is no longer valid since opie added a doctype to nodes.xml
Tested Drillbit XML with: version=1.8.0 timestamp=08/26/11 14:21 githash=0e2031e Android Emulator 2.1 and 3.2