GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-30T21:57:07.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 22 API, 2012 Sprint 22 |
Components | iOS |
Labels | api, qe-ios100112, regression |
Reporter | Shyam Bhadauria |
Assignee | Vishal Duggal |
Created | 2012-10-19T12:44:42.000+0000 |
Updated | 2012-12-04T17:59:23.000+0000 |
This is a regression. It works fine in 2.1.3GA
While running the app, it gives error "[ERROR] Script Error = -[NSNull objectForKey:]: unrecognized selector sent to instance 0x3bdb4090 at ti_query.js (line 697)."
Steps to reproduce
1. Run the attached app on the device
Expected result:
1. It should run without any error.
Actual result:
1. It gives an application error. Snapshot of the error attached.
Can you try this with a more recent SDK? This one is a little old.
Tested with build - 3.0.0.v20121018214614. Error still occurring.
Test case itself wrong in ti_query.js line:697 -> tiQuery.fn.tigger() function expects two arguments but always gets one argument. It seems like in the entire project, when ever the function is called, it is called with passing one argument and thus the second argument is always undefined. The fact that it leads to an exception is because, we are doing a better job at checking for the values passed in 3.0.X than in 2.0.X. So this is in fact not a platform bug but a test case error. Marking ticket as invalid.
PR for master https://github.com/appcelerator/titanium_mobile/pull/3324 PR for 3_0_X https://github.com/appcelerator/titanium_mobile/pull/3325
Tested with 3.0.0.v201211300200208 on iPad 4 6.0.1