Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7300] Android: Titanium.UI.TabGroup.open(): crash when TabGroup child Tab.window is uninitialized

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-07-05T05:51:10.000+0000
Affected Version/sRelease 1.7.5, Release 1.8.0.1, Release 2.0.0
Fix Version/sRelease 2.1.0, Sprint 2012-09 API
ComponentsAndroid
Labelsapi, module_tabgroup, parity, qe-and011912, qe-testadded
ReporterDustin Hyde
AssigneeJosh Roesslein
Created2012-01-19T13:29:31.000+0000
Updated2012-07-05T10:42:32.000+0000

Description

When TabGroup.open() is called when the TabGroup contains a Tab with an uninitialized window property, the app crashes. Log Attached. Steps to Reproduce: 1. Run Code.
var tabGroup = Ti.UI.createTabGroup();

var tab = Ti.UI.createTab();

tabGroup.addTab(tab);

tabGroup.open();
Expected Result: App should display a blank screen (as it does in iOS), or generate a runtime error. Actual Result: Crash.

Attachments

FileDateSize
android tabgroup open uninitialized window crash.txt2012-01-19T13:29:31.000+00009010

Comments

  1. Dustin Hyde 2012-01-19

    TIMOB-7000 involves not being able to set a window property in a tab after object creation, causing a crash when tabgroup.open() is called. This issue (TIMOB-7300) addresses the initial crash behavior of TIMOB-7000 that is still prevalent.
  2. Josh Roesslein 2012-04-26

    Submitted [PR #2077](https://github.com/appcelerator/titanium_mobile/pull/2077) to resolve issue. This removes the crash seen and matchs up with iOS's fallback to displaying an empty tab.
  3. Payminder Singh 2012-06-23

    Titanium Studio: 2.1.0.201206221045 Mobile SDK: 2.1.0.v20120622174154 OS: X Lion Device: Samsung Galaxy Runtime: V8 & Rhino Fixed. Blank screen launched. App didn't crash, successful launch.
  4. Neha Chhabra 2012-07-05

    Reopening to update labels.

JSON Source