Note that there are some explanatory texts on larger screens.

plurals
  1. POACRA doesn't work
    text
    copied!<p>The app is crashed, but ACRA doesn't come up. Heres the log:</p> <pre><code>11-20 16:50:19.119: ERROR/ACRA(23345): ACRA caught a RuntimeException exception for com.buggyproject. Building report. 11-20 16:50:19.539: ERROR/ACRA(23345): ACRA caught a RuntimeException exception for com.buggyproject. Building report. 11-20 16:50:19.909: ERROR/ACRA(23345): com.buggyproject fatal error : An error occured while executing doInBackground() java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:299) at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) at java.util.concurrent.FutureTask.setException(FutureTask.java:124) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307) at java.util.concurrent.FutureTask.run(FutureTask.java:137) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) at java.lang.Thread.run(Thread.java:856) Caused by: java.lang.NullPointerException at libcore.net.UriCodec.encode(UriCodec.java:132) at java.net.URLEncoder.encode(URLEncoder.java:57) at com.buggyproject.Api$UpdateUI.doInBackground(Api.java:309) at com.buggyproject.Api$UpdateUI.doInBackground(Api.java:296) at android.os.AsyncTask$2.call(AsyncTask.java:287) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) ... 5 more </code></pre> <p>Why it didn't work? Can't it handle NullPointerException? </p> <p><strong>Update</strong> Here's the code snippet with doInBackground function of AsyncTask class where NullPointExcetion is raising</p> <pre><code>@Override protected String doInBackground(String... params) { try{ String path = String.format("update/%s/%s/", URLEncoder.encode(params[0], "UTF-8"), URLEncoder.encode(params[1], "UTF-8")); page = api.getPage(server.getAddress(), path); return page; } catch (UnsupportedEncodingException e){ Log.d(TAG_NAME, "Error URL encoding " + e.toString()); } return null; } </code></pre> <p>I think the proble is that params[0] or params[1] or both are null but why ACRA didn't show up?</p> <p><strong>Update2</strong></p> <p>Another error I have noticed</p> <pre><code>channel '41f00be8 com.buggyproject/org.acra.CrashReportDialog (server)' ~ Channel is unrecoverably broken and will be disposed! </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload