{ "id": "172085", "key": "TIMOB-26317", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-09-10T19:55:46.000+0000", "created": "2018-08-18T02:00:27.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-09-10T19:55:59.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": "Hi, I had these issue while I was debugging a native module.\r\n\r\nWhen a java exception occurs, a NullPointerException is thrown when {{jsstack}} is null, trying to call {{.contains}} on a null string. \r\n\r\nhttps://github.com/appcelerator/titanium_mobile/blob/dc00603cdc187b56531b615ce8e864c6597157f4/android/titanium/src/java/org/appcelerator/titanium/TiExceptionHandler.java#L100-L105\r\n\r\n{quote}\r\nCaused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference\r\n\tat org.appcelerator.titanium.TiExceptionHandler.getError(TiExceptionHandler.java:100)\r\n\tat org.appcelerator.titanium.TiExceptionHandler.handleOpenErrorDialog(TiExceptionHandler.java:141)\r\n\tat org.appcelerator.titanium.TiExceptionHandler.openErrorDialog(TiExceptionHandler.java:121)\r\n\tat org.appcelerator.titanium.TiExceptionHandler.handleException(TiExceptionHandler.java:246)\r\n\tat org.appcelerator.kroll.KrollRuntime.dispatchException(KrollRuntime.java:540)\r\n\tat org.appcelerator.titanium.TiApplication$1.uncaughtException(TiApplication.java:365)\r\n\tat org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:677)\r\n\tat org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:22)\r\n\tat android.app.Activity.performCreate(Activity.java:6975)\r\n\tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)\r\n\tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)\r\n\t... 9 more\r\n{quote}\r\n\r\nAlso, the new exception handler doesn't include the java exception title and message.", "attachment": [], "flagged": false, "summary": "Android: exception handler throws a NullPointerException", "creator": { "name": "gaspard.le", "key": "gaspard.le", "displayName": "Luc-Edmond Gaspard ", "active": true, "timeZone": "America/Montreal" }, "subtasks": [], "reporter": { "name": "gaspard.le", "key": "gaspard.le", "displayName": "Luc-Edmond Gaspard ", "active": true, "timeZone": "America/Montreal" }, "environment": " 7.3.0.v20180816155220", "comment": { "comments": [ { "id": "440902", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/10271", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-20T23:25:20.000+0000", "updated": "2018-08-20T23:25:20.000+0000" }, { "id": "441456", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 7.5.0.v20180906093938.\r\nClosing.\r\n\r\nStudio Ver: 5.1.1.201809051655\r\nSDK Ver: 7.5.0.v20180906093938\r\nOS Ver: 10.13.5\r\nXcode Ver: Xcode 9.4.1\r\nAppc NPM: 4.2.13\r\nAppc CLI: 7.0.6\r\nDaemon Ver: 1.1.3\r\nTi CLI Ver: 5.1.1\r\nAlloy Ver: 1.13.2\r\nNode Ver: 8.9.1\r\nNPM Ver: 5.5.1\r\nJava Ver: 10.0.2\r\nDevices: ⇨ google Nexus 5 (Android 6.0.1)\r\n ⇨ google Nexus 6P (Android 8.1.0)", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-10T19:55:40.000+0000", "updated": "2018-09-10T19:55:40.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }