[TIMOB-8872] Android: Type error during KS launch
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-25T13:20:23.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-09 Core |
Components | Android |
Labels | core, regression |
Reporter | Allen Yeung |
Assignee | Opie Cyrus |
Created | 2012-04-24T10:29:36.000+0000 |
Updated | 2012-06-21T11:46:42.000+0000 |
Description
Steps to reproduce:
1. Checkout the lastest master build
2. Run KS
Expected:
KS should run without any errors.
Actual:
A runtime error occurs as soon as we launch KS:
E/TiJSError(28389): (main) [769,1671] ----- Titanium Javascript Runtime Error -----
E/TiJSError(28389): (main) [0,1671] - In app.js:189,29
E/TiJSError(28389): (main) [0,1671] - Message: Uncaught TypeError: Cannot read property 'title' of undefined
E/TiJSError(28389): (main) [0,1671] - Source: Ti.API.info('tab ' + e.tab.title + ' prevTab = ' + (e.previousTab ? e.previ
The issue here is not so much a regression in platform behavior as correct behavior exposing previously masked issue with the logic in KS perhaps. Further discussion required to determine the correct way to deal with situation.
PR #2069 opened. In order to test the change, temporarily replace the app.js in Kitchen Sink with the one below. When running KS: 1) Select tab 3 and you should see log output of the focus listener attached to the tabgroup and the window for tab 3 2) Select tab 2 and you should see log output of the blur listener attached to the tabgroup and the window for tab 3
Verified no longer producing type error on launch. Also verified blur/focus events with sample code provided. Used SDK 2.1.0.v20120618154152.