[TIMOB-2340] Android: org.mozilla.javascript.UniqueTag Exception crashes app
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:49.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 M01 |
Components | Android |
Labels | android, defect |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2011-04-15T03:17:10.000+0000 |
Updated | 2011-04-17T01:58:49.000+0000 |
Description
Can reproduce it by adding a tableview that only has its
top
property set (have to set at least one arg during
creation, but if you don't set data
then crash
happens). Simple app.js failcase:
Ti.UI.createTableView({top:0});
Exception snippet:
E/KrollContext( 316): Caused by: java.lang.ClassCastException: org.mozilla.javascript.UniqueTag
E/KrollContext( 316): at ti.modules.titanium.ui.TableViewProxy.handleCreationDict(TableViewProxy.java:65)
E/KrollContext( 316): at org.appcelerator.kroll.KrollProxy.handleCreationArgs(KrollProxy.java:401)
E/KrollContext( 316): at org.appcelerator.kroll.util.KrollBindingUtils$1.invoke(KrollBindingUtils.java:75)
I'm in the middle of looking at #2065 (tableview .setData prob) so I'll have a stab at this immediately.
(from [ef7ff3152518d73b83e4aa93c95e7ca231e65819]) [#2340 state:fixed-in-qa] Check for 'data' key in dictionary before accessing it. https://github.com/appcelerator/titanium_mobile/commit/ef7ff3152518d73b83e4aa93c95e7ca231e65819"> https://github.com/appcelerator/titanium_mobile/commit/ef7ff3152518...
pass verify android sim 1.6/2.1 Titanium SDK version: 1.5.0 (11/27/10 10:50 aeb004c)