question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.NullPointerException error

See original GitHub issue

Issue

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ANIBIT14commented, Nov 11, 2021

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

0reactions
thomasrosecommented, Feb 12, 2022

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 of https://example.com). Adding https:// resolved the problem.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found