Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5959] iOS: Application error message says expression is undefined instead of null

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-05T12:04:04.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-44, Release 1.8.0.1
ComponentsiOS
Labelsios110211, module_xml, qe-testadded, regression
ReporterAlan Vaghti
AssigneeSabil Rahim
Created2011-11-02T09:15:00.000+0000
Updated2014-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

Comments

  1. Dustin Hyde 2011-12-08

  2. Dustin Hyde 2011-12-08

    Added label.
  3. Wilson Luu 2012-01-05

    Reopening bug to add tag
  4. Wilson Luu 2012-01-05

    Label added

JSON Source