Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18288] iOS: Empty tableview with footer causes app to crash

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionDuplicate
Resolution Date2014-12-24T12:18:52.000+0000
Affected Version/sRelease 3.4.1
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterJamie Buckley
AssigneeIngo Muschenetz
Created2014-12-24T12:13:35.000+0000
Updated2017-03-20T22:21:23.000+0000

Description

Problem Description

When a tableview has a textfield added to the footer and the tableview is not populated clicking on the textfield causes the app to crash with the error in attached log.

Test Case

var title_view = Ti.UI.createView({
	height : 100
});
title_view.add(Ti.UI.createTextField({
	width : "90%",
	height : 40,
	borderStyle : Ti.UI.INPUT_BORDERSTYLE_BEZEL
}));

var items_view = Ti.UI.createTableView({
	top : 30,
	data : [],
	footerView : title_view
});
var win = Ti.UI.createWindow({
	backgroundColor : "#fff"
});
win.add(items_view);
win.open();

Expected result

Text field should be focused

Actual result

App crashes after text field is focused

Attachments

FileDateSize
ErrorLog.txt2014-12-24T12:13:35.000+00004311

Comments

  1. Lee Morris 2017-03-20

    Closing ticket as duplicate.

JSON Source