[TIMOB-8166] Mobileweb: Ti.UI.createTextField() crashes app (maybe other creates too)
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-03-21T14:51:49.000+0000 |
| Affected Version/s | Release 2.0.0 |
| Fix Version/s | Release 2.0.0, Sprint 2012-06 |
| Components | MobileWeb |
| Labels | mw-list, qe-port |
| Reporter | Tony Lukasavage |
| Assignee | Chris Barber |
| Created | 2012-03-21T14:16:54.000+0000 |
| Updated | 2012-08-09T10:28:04.000+0000 |
Description
Affects 2.0.0.v20120321134756
Problem
A simple call ofTi.UI.createTextField() crashes apps with the following error:
handles is undefined
[Break On This Error]
handles.splice(0);
I'm going to guess that createTextField isn't the only function that will cause this to happen, but this is how it surfaced for me.
Test Case
var win = Ti.UI.createWindow();
var textfield = Ti.UI.createTextField();
win.open();
Pull request: https://github.com/appcelerator/titanium_mobile/pull/1782
Tested On: Titanium studio : 2.1.1.201207271312 SDK version : 2.2.0.v20120809014911 Android 4.0.4 - default ,chrome 18.0 Iphone 4.3.5 - safari mobile Mountain lion(10.8) - chrome 21.0,safari 6,firefox 14.0.1