{ "id": "140942", "key": "TIMOB-18135", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-07T23:35:00.000+0000", "created": "2014-12-04T05:53:24.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-3.5.0", "qe-assigned", "regression" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [ { "id": "43700", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "140950", "key": "TIMOB-18137", "fields": { "summary": "iOS: app crashes when comparing variables against null or undefined in the same 'if' statement", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-12-09T23:16:25.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": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Titanium Apps are crashing when object null checks are used inside app.js file.\r\nThis is a *regression* since same code works fine in 3.4.1\r\n\r\nh5. Steps To Reproduce\r\n1. Create an app using following code\r\n{code}\r\nvar b = null;\r\nif (b != null) \r\n{ \r\n\t// do something\r\n}\r\n{code}\r\n\r\n2. Run the App in iOS device with 3.5.0 SDK\r\n\r\nh5. Actual Result\r\nApp is crashing\r\n\r\nh5. Expected Result \r\nApp should not crash.", "attachment": [], "flagged": false, "summary": "iOS: App is crashing for null check in JavaScript variables", "creator": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Titanium SDK: 3.5.0.v20141202100219\r\nAppc-Studio: 3.4.1 GA\r\nTitanium CLI: 3.4.1 GA\r\nAlloy : 1.5.1 GA\r\nXcode : 6.1\r\nOS: OSX 10.10.1\r\nDevice : iPhone 6plus (iOS 8.1)", "closedSprints": [ { "id": 126, "state": "closed", "name": "2018 Sprint 05 SDK", "startDate": "2018-02-25T19:38:08.926Z", "endDate": "2018-03-11T18:38:00.000Z", "completeDate": "2018-03-11T22:06:01.520Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "334766", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is this a duplicate of TIMOB-18118?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-04T05:55:34.000+0000", "updated": "2014-12-04T05:55:34.000+0000" }, { "id": "334773", "author": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "body": "Following codes are not crashing\r\n{code}\r\n//code 1\r\nvar b = 1;\r\nif (b != null) \r\n{ \r\n // do something\r\n}\r\n\r\n//code 2\r\nvar b = null;\r\nif (b == null) \r\n{ \r\n // do something\r\n}\r\n{code}\r\n\r\nUse cases:\r\nKitchenSink -> Base UI -> Window (Standalone) is crashing for same reason with 3.5.0 SDK", "updateAuthor": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-12-04T06:34:52.000+0000", "updated": "2014-12-04T06:34:52.000+0000" }, { "id": "334782", "author": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "body": "Yes [~ingo] It's a duplicate of TIMOB-18118\r\n\r\nIn TIMOB-18118, It's crashing in the same syntax. \r\nFollowing is the actual code of crash in the ticket\r\n{code}\r\nif (null != b && null != e) // It crashes in this line if either 'b' or 'e' is null.\r\n // some code here\r\n{code}", "updateAuthor": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-12-04T07:25:26.000+0000", "updated": "2014-12-04T07:42:08.000+0000" }, { "id": "335735", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed using:\r\n\r\nTitanium SDK 3.5.0.v20141208122514\r\nStudio 3.4.1.201410281743 \r\nXcode 6.1.1\r\n\r\nOn: \r\niPad mini, iOS 8.1\r\niPhone 6, iOS 8.2b \r\niPhone 4S Sim, iOS 8.1", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-09T23:16:18.000+0000", "updated": "2014-12-09T23:16:18.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }