Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1912] NullPointerException at android.webkit.AccessibilityInjector.isJavaScriptEnabled

GitHub Issuen/a
ResolutionNeeds more info
Resolution Date2013-01-25T18:12:08.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, nullpointerexception, triage, webview
ReporterAzwan b. Amit
AssigneeMauro Parra-Miranda


two devices affected by this bug: * GT-I9100, android 4.1.1 * Galaxy Nexus, android 4.1.2 In 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 stack trace: java.lang.NullPointerException at android.webkit.AccessibilityInjector.isJavaScriptEnabled(AccessibilityInjector.java:451) at android.webkit.AccessibilityInjector.shouldInjectJavaScript(AccessibilityInjector.java:317) at android.webkit.AccessibilityInjector.onPageFinished(AccessibilityInjector.java:281) at android.webkit.WebViewClassic.onPageFinished(WebViewClassic.java:3958) at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:325) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)


  1. Daniel Sefton 2012-11-09

    Can you provide a simple reproducible test case for this? Thanks.
  2. Azwan b. Amit 2012-11-19

    sorry i couldn't reproduce this bug, cuz i got the crash report from remote users thru acra
  3. Daniel Sefton 2012-11-19

    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.
  4. Daniel Sefton 2013-01-25

    I've set this to resolved so that the issue can now be edited to provide more info. Thanks, Daniel

JSON Source