{ "id": "136150", "key": "AC-1068", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2015-02-03T15:21:15.000+0000", "created": "2014-09-05T15:34:34.000+0000", "labels": [ "TCSupportTriage" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37: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": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" }, { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "in the \r\n\r\nLibrary/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/node-appc/lib/plist.js\r\n\r\nfile there is a piece of code at line 127..\r\n{code}\r\nif (next.tagName == 'key') {\r\n\tobj[key] = null;\r\n\tnode = next;\r\n\tcontinue;\r\n}\r\n{code}\r\n\r\nOur application fell over with a null exception.\r\n\r\nChanged the code to\r\n\r\n{code}\r\nif (next && next.tagName == 'key') {\r\n\tobj[key] = null;\r\n\tnode = next;\r\n\tcontinue;\r\n}\r\n{code}\r\n\r\nand all is working again.\r\n\r\nThis is only an issue in 3.3.0 SDK\r\n\r\n", "attachment": [], "flagged": false, "summary": "The CLI plist file failed to allow a valid compile", "creator": { "name": "thewarpedcoder", "key": "thewarpedcoder", "displayName": "Trevor Ward", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "thewarpedcoder", "key": "thewarpedcoder", "displayName": "Trevor Ward", "active": true, "timeZone": "Europe/London" }, "environment": "IOS, CLI, Mac", "comment": { "comments": [ { "id": "322054", "author": { "name": "thewarpedcoder", "key": "thewarpedcoder", "displayName": "Trevor Ward", "active": true, "timeZone": "Europe/London" }, "body": "Further info.\r\n\r\nWe have identified the issue and it is to do with the tiapp.xml file, which has this code at the end.\r\n\r\n \r\n \r\n \r\n CFBundleURLTypes\r\n \r\n \r\n CFBundleTypeRole\r\n Editor\r\n CFBundleURLName\r\n com.firstutility.firstutility\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\ncommenting out the last key item as it doesn't have a string object fixed the build. However we are now trying to identify where this code has come from..", "updateAuthor": { "name": "thewarpedcoder", "key": "thewarpedcoder", "displayName": "Trevor Ward", "active": true, "timeZone": "Europe/London" }, "created": "2014-09-05T16:32:43.000+0000", "updated": "2014-09-05T16:32:43.000+0000" }, { "id": "322060", "author": { "name": "thewarpedcoder", "key": "thewarpedcoder", "displayName": "Trevor Ward", "active": true, "timeZone": "Europe/London" }, "body": "OK have now gone through git, this code was inserted by enabling the Sensa automated testing. 1 line of code was removed below the last key at some point which was causing the issue.", "updateAuthor": { "name": "thewarpedcoder", "key": "thewarpedcoder", "displayName": "Trevor Ward", "active": true, "timeZone": "Europe/London" }, "created": "2014-09-05T16:47:05.000+0000", "updated": "2014-09-05T16:47:05.000+0000" }, { "id": "322996", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "[~thewarpedcoder]: From your last comment, is this still an issue? Best Regards!", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-09-11T05:36:23.000+0000", "updated": "2014-09-11T05:36:23.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }