{ "id": "104309", "key": "AC-1912", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-01-25T18:12:08.000+0000", "created": "2012-11-02T04:00:57.000+0000", "labels": [ "android", "nullpointerexception", "triage", "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:40:50.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "two devices affected by this bug:\r\n * GT-I9100, android 4.1.1\r\n * Galaxy Nexus, android 4.1.2\r\n\r\nIn my JS code, I read an HTML file to get the HTML code & set to webview using {{webview.setHtml(htmlString)}}. Possibly error occurs because in {{onPageFinished()}}, which pass the {{url}} value to {{isJavaScriptEnabled()}}, the value is null\r\n\r\nstack trace:\r\n{{java.lang.NullPointerException}}\r\n{{at android.webkit.AccessibilityInjector.isJavaScriptEnabled(AccessibilityInjector.java:451)}}\r\n{{at android.webkit.AccessibilityInjector.shouldInjectJavaScript(AccessibilityInjector.java:317)}}\r\n{{at android.webkit.AccessibilityInjector.onPageFinished(AccessibilityInjector.java:281)}}\r\n{{at android.webkit.WebViewClassic.onPageFinished(WebViewClassic.java:3958)}}\r\n{{at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:325)}}\r\n{{at android.os.Handler.dispatchMessage(Handler.java:99)}}\r\n{{at android.os.Looper.loop(Looper.java:137)}}\r\n{{at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)}}", "attachment": [], "flagged": false, "summary": "NullPointerException at android.webkit.AccessibilityInjector.isJavaScriptEnabled", "creator": { "name": "azwan082", "key": "azwan082", "displayName": "Azwan b. Amit", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "azwan082", "key": "azwan082", "displayName": "Azwan b. Amit", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Android 4.1.x, Titanium mobile 2.1.3.GA, Host: windows 7 pro, titanium studio: 2.1.2.201208301612 ", "comment": { "comments": [ { "id": "226937", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you provide a simple reproducible test case for this? Thanks.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-09T22:03:53.000+0000", "updated": "2012-11-09T22:03:53.000+0000" }, { "id": "227826", "author": { "name": "azwan082", "key": "azwan082", "displayName": "Azwan b. Amit", "active": true, "timeZone": "Asia/Shanghai" }, "body": "sorry i couldn't reproduce this bug, cuz i got the crash report from remote users thru acra", "updateAuthor": { "name": "azwan082", "key": "azwan082", "displayName": "Azwan b. Amit", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2012-11-19T01:26:53.000+0000", "updated": "2012-11-19T01:26:53.000+0000" }, { "id": "227868", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can't escalate this without some code - even if you can't reproduce it yourself (I'm assuming you don't have a GT-I9100 4.1.1 or Galaxy Nexus 4.1.2). Just copy the exact code you use to create the web view in a new project, make sure it runs, and post the app.js here (you can change the HTML string if it contains sensitive info). Thanks.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-19T17:28:43.000+0000", "updated": "2012-11-19T17:28:43.000+0000" }, { "id": "235919", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've set this to resolved so that the issue can now be edited to provide more info.\r\nThanks,\r\nDaniel", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-25T18:12:08.000+0000", "updated": "2013-01-25T18:12:08.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }