Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4485] Android: Tabbed windows with backgroundColor property crash app with NPE

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-06-22T17:16:57.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-25, Release 1.7.2, Release 1.8.0
ComponentsAndroid
Labelsn/a
ReporterBill Dawson
AssigneeBill Dawson
Created2011-06-22T16:14:03.000+0000
Updated2011-07-06T09:49:41.000+0000

Description

Caused by commits for TIMOB-1529. This app.js will crash:
var tabGroup = Titanium.UI.createTabGroup();
var win1 = Titanium.UI.createWindow({
	title:'Tab 1',
	backgroundColor:'#fff'    
});
var tab1 = Titanium.UI.createTab({
	icon:'KS_nav_views.png',
	title:'Tab 1',
	window:win1
});

tabGroup.addTab(tab1);
tabGroup.open();

Comments

  1. Don Thorp 2011-06-22

    Reviewed, tested, merged.
  2. Don Thorp 2011-06-23

    merged onto 1_7_X
  3. Don Thorp 2011-06-23

    merged onto 1_7_X
  4. Natalie Huynh 2011-07-06

    Tested with Nexus S 2.3.4 and Nexus One 2.2.2 with 1.7.2.v20110630161836

JSON Source