{ "id": "155047", "key": "TIMOB-20435", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2016-02-20T06:13:43.000+0000", "created": "2016-02-20T01:09:14.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-5.2.0", "regression" ], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [ { "id": "50665", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "155045", "key": "TIMOB-20434", "fields": { "summary": "Kitchen Sink Crashes on initial install ", "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 } } } }, { "id": "50662", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "151485", "key": "TIMOB-19577", "fields": { "summary": "Android: Update Facebook Module to support Facebook SDK 4.7.0", "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": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-02-21T23:50:00.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Details:* NullPointerException is thrown in logcat if you use the latest SDK with latest Facebook module.\r\n\r\n*Notes:* This is *a regression* from SDK 5.2.0.v20160208101502 and 5.1.2.GA.\r\n\r\n*Steps to reproduce:*\r\n# In the Stable KitchenSink, open tiapp.xml\r\n# Replace the Android section with the following:\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n{code} \r\n# Make sure facebook module 5.0.0 is selected\r\n# Install KitchenSink to device\r\n# Wait for app to launch\r\n\r\n*Actual:* NullPointerException is thrown in logcat:\r\n{code}\r\n[ERROR] : TiApplication: (AsyncTask #1) [2,2] Sending event: exception on thread: AsyncTask #1 msg:java.lang.NullPointerException: Attempt to invoke virtual method 'int android.app.Activity.checkSelfPermission(java.lang.String)' on a null object reference; Titanium 5.2.0,2016/02/19 12:45,fd837d1\r\n[ERROR] : TiApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.app.Activity.checkSelfPermission(java.lang.String)' on a null object reference\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.util.TiFileHelper2.hasStoragePermission(TiFileHelper2.java:89)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.util.TiResponseCache.get(TiResponseCache.java:314)\r\n[ERROR] : TiApplication: \tat com.android.okhttp.internal.huc.CacheAdapter.getJavaCachedResponse(CacheAdapter.java:103)\r\n[ERROR] : TiApplication: \tat com.android.okhttp.internal.huc.CacheAdapter.get(CacheAdapter.java:47)\r\n[ERROR] : TiApplication: \tat com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:22\r\n[ERROR] : TiApplication: \tat com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:433)\r\n[ERROR] : TiApplication: \tat com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:384)\r\n[ERROR] : TiApplication: \tat com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:497)\r\n[ERROR] : TiApplication: \tat com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)\r\n[ERROR] : TiApplication: \tat com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java)\r\n[ERROR] : TiApplication: \tat com.facebook.GraphResponse.fromHttpConnection(GraphResponse.java:253)\r\n[ERROR] : TiApplication: \tat com.facebook.GraphRequest.executeConnectionAndWait(GraphRequest.java:1255)\r\n[ERROR] : TiApplication: \tat com.facebook.GraphRequest.executeBatchAndWait(GraphRequest.java:1157)\r\n[ERROR] : TiApplication: \tat com.facebook.GraphRequest.executeBatchAndWait(GraphRequest.java:1124)\r\n[ERROR] : TiApplication: \tat com.facebook.GraphRequest.executeBatchAndWait(GraphRequest.java:1108)\r\n[ERROR] : TiApplication: \tat com.facebook.GraphRequest.executeAndWait(GraphRequest.java:1083)\r\n[ERROR] : TiApplication: \tat com.facebook.GraphRequest.executeAndWait(GraphRequest.java:977)\r\n[ERROR] : TiApplication: \tat com.facebook.internal.Utility.getAppSettingsQueryResponse(Utility.java:868)\r\n[ERROR] : TiApplication: \tat com.facebook.internal.Utility.access$1(Utility.java:860)\r\n[ERROR] : TiApplication: \tat com.facebook.internal.Utility$1.run(Utility.java:797)\r\n[ERROR] : TiApplication: \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)\r\n[ERROR] : TiApplication: \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)\r\n[ERROR] : TiApplication: \tat java.lang.Thread.run(Thread.java:818)\r\n{code}\r\n\r\n*Expected:* NullPointerException should not be thrown.", "attachment": [], "flagged": false, "summary": "NullPointerException is thrown in logcat if you use the latest SDK with latest Facebook module", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 4.5.0.201602170821\r\nAppc CLI NPM: 4.2.3-2\r\nAppc CLI Core: 5.2.0-269\r\nArrow: 1.7.27\r\nSDK: 5.2.0.v20160219124528\r\nfacebook: 5.0.0\r\nNode: v4.2.4\r\nOS: El Capitan (10.11.3)\r\nDevice: Nexus 6 (6.0)", "comment": { "comments": [ { "id": "377429", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Resolving this as a duplicate of TIMOB-20434", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-02-20T06:14:01.000+0000", "updated": "2016-02-20T06:14:01.000+0000" }, { "id": "377470", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate of TIMOB-20434.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-02-21T23:49:55.000+0000", "updated": "2016-02-21T23:49:55.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }