Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10893] iOS:Label with empty text field causes app to crash.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2012-09-13T21:02:31.000+0000
Affected Version/sRelease 2.1.3
Fix Version/sn/a
ComponentsiOS
Labelsqe-ios090112
ReporterShyam Bhadauria
AssigneeNeeraj Gupta
Created2012-09-13T06:47:18.000+0000
Updated2017-03-09T21:30:59.000+0000

Description

This is not a regression. It also happens on 2.1.2. App do not crashes on iOS 5.1 Steps to reproduce: 1. Use the app below
var win = Ti.UI.createWindow({backgroundColor:'red'});
 
var label1 = Titanium.UI.createLabel({
		    color:'#999',
		    text:"",
		    font:{fontSize:20,fontFamily:'Helvetica Neue'},
		    textAlign:'center',
		    width:'auto'
		});
                //uncomment below line, it will not crash on iOS 6
		//label1.text = 'Hi'
		win.add(label1);
win.open();
2. Run the app on iOS 6. Expected result: 2. App should display a blank red window Actual result: 2. App crashes.

Comments

  1. Neeraj Gupta 2012-09-13

    Duplicate of TIMOB-10810.
  2. Lee Morris 2017-03-09

    Closing ticket as duplicate.

JSON Source