java.lang.NullPointerException error
See original GitHub issueIssue
WHen using the latest version 6.4.0 I get the error below can anyone help?
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
at net.openid.appauth.IdToken.validate(IdToken.java:141)
at net.openid.appauth.AuthorizationService$TokenRequestTask.onPostExecute(AuthorizationService.java:698)
at net.openid.appauth.AuthorizationService$TokenRequestTask.onPostExecute(AuthorizationService.java:564)
at android.os.AsyncTask.finish(AsyncTask.java:771)
at android.os.AsyncTask.access$900(AsyncTask.java:199)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8512)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1139)
Environment
-
Your Identity Provider:
e.g. IdentityServer 4 / Okta / Azure
-
Platform that you’re experiencing the issue on:
iOS / Android / both
Android
- Are you using Expo?
No
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
java - What is a NullPointerException, and how do I fix it?
The NullPointerException (NPE) typically occurs when you declare a variable but did not create an object and assign it to the variable before...
Read more >How to resolve the java.lang.NullPointerException - Educative.io
In Java, the java.lang.NullPointerException is thrown when a reference variable is accessed (or de-referenced) and is not pointing to any object. This error ......
Read more >How to Fix and Avoid NullPointerException in Java - Rollbar
The NullPointerException occurs due to a situation in application code where an uninitialized object is attempted to be accessed or modified.
Read more >Java NullPointerException - Detect, Fix, and Best Practices
This is one of the most common occurrences of java.lang.NullPointerException because it's the caller who is passing the null argument. The below ...
Read more >java.lang.nullpointerexception error and fixing with 3 examples
The java.lang.NullPointerException is an error in Java that occurs as a Java program attempts to use a null when an object is required....
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 am also getting the same error
java.lang.NullPointerException: Attempt to invoke virtual method ‘boolean java.lang.Boolean.booleanValue()’ on a null object reference
Stack trace is
com.rnappauth.RNAppAuthModule.onActivityResult RNAppAuthModule.java:419 com.facebook.react.bridge.ReactContext.onActivityResult ReactContext.java:305 com.facebook.react.ReactInstanceManager.onActivityResult ReactInstanceManager.java:762 com.facebook.react.ReactDelegate.onActivityResult ReactDelegate.java:90 com.facebook.react.ReactActivityDelegate.onActivityResult ReactActivityDelegate.java:112 com.facebook.react.ReactActivity.onActivityResult ReactActivity.java:68 android.app.Activity.dispatchActivityResult Activity.java:8550 android.app.ActivityThread.deliverResults ActivityThread.java:5534 android.app.ActivityThread.handleSendResult ActivityThread.java:5582 android.app.servertransaction.ActivityResultItem.execute ActivityResultItem.java:51 android.app.servertransaction.TransactionExecutor.executeCallbacks TransactionExecutor.java:135 android.app.servertransaction.TransactionExecutor.execute TransactionExecutor.java:95 android.app.ActivityThread$H.handleMessage ActivityThread.java:2317 android.os.Handler.dispatchMessage Handler.java:106 android.os.Looper.loop Looper.java:246 android.app.ActivityThread.main ActivityThread.java:8595 java.lang.reflect.Method.invoke Method.java com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run RuntimeInit.java:602 com.android.internal.os.ZygoteInit.main ZygoteInit.java:1130
Can anyone tell what might be causing it
I ran into the same issue, albeit using FusionAuth. The
issuer
in the FusionAuth tenant was configured without a protocol (e.g.example.com
instead ofhttps://example.com
). Addinghttps://
resolved the problem.