Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2340] Android: org.mozilla.javascript.UniqueTag Exception crashes app

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:49.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M01
ComponentsAndroid
Labelsandroid, defect
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T03:17:10.000+0000
Updated2011-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)

Comments

  1. Bill Dawson 2011-04-15

    I'm in the middle of looking at #2065 (tableview .setData prob) so I'll have a stab at this immediately.

  2. Bill Dawson 2011-04-15

    (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...

  3. Matt Schmulen 2011-04-15

    pass verify android sim 1.6/2.1 Titanium SDK version: 1.5.0 (11/27/10 10:50 aeb004c)

JSON Source