{ "id": "65066", "key": "TIMOB-3910", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11253", "name": "Sprint 2011-18", "archived": true, "released": true, "releaseDate": "2011-05-09" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-14T12:30:39.000+0000", "created": "2011-05-05T15:58:53.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [ { "id": "10358", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "65077", "key": "TIMOB-3916", "fields": { "summary": "Confirm TIMOB-3910 - Android: App with Tabs that is pushed to Android 2.1 Emulator \"first launch\" will crash", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-05-14T12:30:39.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4. Reproduce:\n\n# Make sure all emulators are closed.\n# Open Ti Studio or Ti Developer. If Ti Studio, set your default Android emulator to a 2.1 emulator.\n# Create a new project.\n# Launch the project to a 2.1 emulator.\n\nh4. Result:\n\nThe emulator is launched (of course), but when the app is installed and then starts, it crashes:\n\n{code}\n\nE/TiUncaughtHandler( 240): java.lang.NullPointerException\nE/TiUncaughtHandler( 240): \tat android.widget.TabWidget.onFocusChange(TabWidget.java:351)\nE/TiUncaughtHandler( 240): \tat android.view.View.onFocusChanged(View.java:2622)\nE/TiUncaughtHandler( 240): \tat android.view.View.handleFocusGainInternal(View.java:2445)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.handleFocusGainInternal(ViewGroup.java:404)\nE/TiUncaughtHandler( 240): \tat android.view.View.requestFocus(View.java:3562)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.requestFocus(ViewGroup.java:976)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1021)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.requestFocus(ViewGroup.java:977)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1021)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.requestFocus(ViewGroup.java:980)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1021)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.requestFocus(ViewGroup.java:977)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1021)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.requestFocus(ViewGroup.java:977)\nE/TiUncaughtHandler( 240): \tat android.view.View.requestFocus(View.java:3513)\nE/TiUncaughtHandler( 240): \tat android.view.ViewRoot.clearChildFocus(ViewRoot.java:1526)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.clearChildFocus(ViewGroup.java:507)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.clearChildFocus(ViewGroup.java:507)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.clearChildFocus(ViewGroup.java:507)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.clearChildFocus(ViewGroup.java:507)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.clearChildFocus(ViewGroup.java:507)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.removeAllViewsInLayout(ViewGroup.java:2199)\nE/TiUncaughtHandler( 240): \tat android.view.ViewGroup.removeAllViews(ViewGroup.java:2145)\nE/TiUncaughtHandler( 240): \tat android.widget.TabHost.clearAllTabs(TabHost.java:222)\nE/TiUncaughtHandler( 240): \tat ti.modules.titanium.ui.widget.TiUITabGroup.(TiUITabGroup.java:43)\nE/TiUncaughtHandler( 240): \tat ti.modules.titanium.ui.TabGroupProxy.handleMessage(TabGroupProxy.java:81)\n{code}\n\nAfter choosing to force close the app, it works fine on relaunch.\n\nh4. Expected Result\n\nEmulator launches, and app launches into it without crashing.", "attachment": [], "flagged": false, "summary": "Android: App with Tabs that is pushed to Android 2.1 Emulator \"first launch\" will crash", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium Mobile SDK 1.7.0 bbf226c6\nAndroid Emulator 2.1", "comment": { "comments": [ { "id": "133242", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "cf http://code.google.com/p/android/issues/detail?id=2772\n", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-05-05T16:07:44.000+0000", "updated": "2011-05-05T16:07:44.000+0000" }, { "id": "133587", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No crash.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-14T12:30:39.000+0000", "updated": "2011-05-14T12:30:39.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }