{ "id": "173220", "key": "ALOY-1653", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "20671", "description": "Alloy items that will be included in CLI 7.1.0", "name": "CLI Release 7.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" }, { "id": "20836", "name": "Alloy 1.14.0", "archived": false, "released": true, "releaseDate": "2019-07-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-06-19T14:49:42.000+0000", "created": "2019-03-20T17:34:45.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "regression" ], "versions": [], "issuelinks": [ { "id": "57271", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "161184", "key": "ALOY-1505", "fields": { "summary": "Add ability to pass cancel attribute to Option element for OptionDialog", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2019-06-19T14:49:42.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": [], "description": "h5.Description\r\n\r\nWhen running kitchensink on Android and clicking an option dialog button I'm getting the below error. It looks to be because the destructive/cancel properties aren't defined so we're setting them to null, we shouldn't set these properties if they aren't defined in the xml\r\n\r\n{code}\r\n[ERROR] InputEventReceiver: Exception dispatching input event.\r\n[ERROR] E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback\r\n[ERROR] E/MessageQueue-JNI: java.lang.NumberFormatException: Unable to convert null\r\n[ERROR] E/MessageQueue-JNI: \tat org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:419)\r\n[ERROR] E/MessageQueue-JNI: \tat ti.modules.titanium.ui.widget.TiUIDialog.handleEvent(TiUIDialog.java:364)\r\n[ERROR] E/MessageQueue-JNI: \tat ti.modules.titanium.ui.widget.TiUIDialog$1.onClick(TiUIDialog.java:122)\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Build kitchensink\r\n2. Click option dialog\r\n3. Open the option dialog\r\n4. Select an option\r\n\r\nh5.Actual\r\n\r\nAbove error\r\n\r\nh5.Expected\r\n\r\nNo error", "attachment": [], "flagged": false, "summary": "Runtime error on Android when using optiondialog and not declaring destructive or cancel properties", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Alloy master", "comment": { "comments": [ { "id": "447056", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "https://github.com/appcelerator/alloy/pull/926", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-03-21T17:19:21.000+0000", "updated": "2019-03-21T17:19:21.000+0000" }, { "id": "449198", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*, Fix verified in CLI Version {{7.1.0-master.21}} No runtime error was seen on KitchenSink-v2 when testing the 'option dialog' section. \r\n\r\n*Test Steps*\r\n1. Built kitchensink-v2\r\n2. Clicked on the option dialog \r\n3. Opened the option dialog\r\n4. Selected an option\r\n5. Able to see no run time error and the console displayed its index number (selected each option)\r\n{code:java}\r\n[INFO] \b\b \b Ti.UI.OptionDialog selected option at index: 1\r\n[INFO] \b\b \b Ti.UI.OptionDialog selected option at index: 2\r\n[INFO] \b\b \b Ti.UI.OptionDialog selected option at index: 0\r\n{code}\r\n\r\n*Test Environment*\r\n{code:java}\r\nSDK: 8.0.2.GA\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.14.4\r\n Architecture = 64bit\r\n CPUs = 8\r\n Memory = 16.0GB\r\nNode.js\r\n Node.js Version = 10.13.0\r\n npm Version = 6.4.1\r\nAppcelerator CLI\r\n Installer = 4.2.14-3\r\n Core Package = 7.1.0-master.21\r\nTitanium CLI\r\n CLI Version = 5.2.1\r\n node-appc Version = 0.2.49\r\n{code}\r\n\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-06-19T14:49:29.000+0000", "updated": "2019-06-19T14:49:29.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }