NullPointerException in TokenRequestTask execution
See original GitHub issueI use the version 0.7.0 of the library and sometimes get the following error:
Caused by java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:78)
at java.io.InputStreamReader.<init>(InputStreamReader.java:72)
at net.openid.appauth.Utils.readInputStream(Utils.java:36)
at net.openid.appauth.AuthorizationService$TokenRequestTask.doInBackground(AuthorizationService.java:431)
at net.openid.appauth.AuthorizationService$TokenRequestTask.doInBackground(AuthorizationService.java:375)
at android.os.AsyncTask$2.call(AsyncTask.java:333)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
This crash happens when the input stream is null, e.g. the server is out of business.
Would it be possible to handle a null input stream as network error?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
java - What is a NullPointerException, and how do I fix it?
This results in a NullPointerException because there is no code to execute in the location that the reference is pointing. (This is a...
Read more >Java NullPointerException - Detect, Fix, and Best Practices
The below image shows the null pointer exception when the above program is executed in Eclipse IDE. Exception in thread main java.lang.
Read more >IT38806: NULLPOINTEREXCEPTION DURING EXECUTION ...
While executing mqsicreatebar command a NullPointerException may occur. The exception example is.
Read more >NullPointerException de-reference a null object in Apex code ...
This error is caused by a line of code that is trying to use an object that has not been instantiated, or an...
Read more >java.lang.NullPointerException with in-process object ...
Following error occurs when calling an EDC enabled decision service using in-process object execution: com.corticon.reactor.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve faced with the same issue or similar and can’t find any solution at the moment. I’m using version 0.7.1. Here is the error output.
Should now be fixed by the merge of #414.