[TIMOB-6075] Android: Contacts: Rhino only, clicking the button to search by id or group id causes the application to crash
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-11-15T16:33:50.000+0000 |
| Affected Version/s | Release 1.8.0 |
| Fix Version/s | Sprint 2011-46, Release 1.8.0.1 |
| Components | Android |
| Labels | branch-v8 |
| Reporter | Natalie Huynh |
| Assignee | Allen Yeung |
| Created | 2011-11-08T10:52:10.000+0000 |
| Updated | 2014-06-19T12:42:49.000+0000 |
Description
Steps To Reproduce:
1. Launch Application
2. Phone > Contacts > Search By ID
3. Click on either button to search with no value entered
Actual Result:
Application Crashes
Expected Result:
Should return nothing
PR ready: https://github.com/appcelerator/titanium_mobile/pull/670
The crash was caused by some bad logic in our binding layer, but there also a few other oddities about this test: - getGroupByID doesn't exist in Android (yet), so we'll surround that part of the test with an
if (platform == android)check for now - FIND CONTACT BY ID would allow you to find without entering any text, so we're adding a try/catch that gives a friendlier error to the KS testTested with 1.8.0.1.v20111207090257 Xoom (3.2.1) - v8 Samsung Tab 10.1 (3.1) - rhino