[TIMOB-5959] iOS: Application error message says expression is undefined instead of null
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-01-05T12:04:04.000+0000 |
| Affected Version/s | Release 1.8.0 |
| Fix Version/s | Sprint 2011-44, Release 1.8.0.1 |
| Components | iOS |
| Labels | ios110211, module_xml, qe-testadded, regression |
| Reporter | Alan Vaghti |
| Assignee | Sabil Rahim |
| Created | 2011-11-02T09:15:00.000+0000 |
| Updated | 2014-06-19T12:42:38.000+0000 |
Description
1) Create a new project and put the following the app.js
var win = Ti.UI.createWindow({});
var xmlString = "<benny/>";
var doc = Ti.XML.parseString(xmlString);
var elem = doc.getElementsByTagName("mickey").item(0);
win.open();
2) Launch app
Actual results: Application Error. Result of expression 'doc.getElementsByTagName("micky")' [undefined] is not an object
Expected Results: Application Error. Result of expression 'doc.getElementsByTagName("micky")' [null] is not an object
Notes:
Issue seems to be a regression. The error message is as expected in 1.7.4 and 1.7.5.v20111101114654.
Issue is related to TIMOB-3464
Added label.
Reopening bug to add tag
Label added