Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8166] Mobileweb: Ti.UI.createTextField() crashes app (maybe other creates too)

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-03-21T14:51:49.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsMobileWeb
Labelsmw-list, qe-port
ReporterTony Lukasavage
AssigneeChris Barber
Created2012-03-21T14:16:54.000+0000
Updated2012-08-09T10:28:04.000+0000

Description

Affects 2.0.0.v20120321134756

Problem

A simple call of Ti.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();

Comments

  1. Chris Barber 2012-03-21

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/1782
  2. Lokesh Choudhary 2012-08-09

    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

JSON Source