[AC-1912] NullPointerException at android.webkit.AccessibilityInjector.isJavaScriptEnabled
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2013-01-25T18:12:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, nullpointerexception, triage, webview |
Reporter | Azwan b. Amit |
Assignee | Mauro Parra-Miranda |
Created | 2012-11-02T04:00:57.000+0000 |
Updated | 2016-03-08T07:40:50.000+0000 |
Description
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 usingwebview.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)
Comments
- Daniel Sefton 2012-11-09 Can you provide a simple reproducible test case for this? Thanks.
- Azwan b. Amit 2012-11-19 sorry i couldn't reproduce this bug, cuz i got the crash report from remote users thru acra
- 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.
- 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