java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference

GitHub | pasin | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    OIDC Authenticator loadToken() shows NPE in logcat

    GitHub | 8 months ago | pasin
    java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference

      at com.couchbase.lite.auth.OpenIDConnectAuthorizer.parseTokensFrom()
    2. com.couchbase.lite
      Database$2.run
      1. com.couchbase.lite.auth.OpenIDConnectAuthorizer.parseTokensFrom(OpenIDConnectAuthorizer.java:270)
      2. com.couchbase.lite.auth.OpenIDConnectAuthorizer.loadTokens(OpenIDConnectAuthorizer.java:250)
      3. com.couchbase.lite.auth.OpenIDConnectAuthorizer.loginRequest(OpenIDConnectAuthorizer.java:107)
      4. com.couchbase.lite.replicator.ReplicationInternal.login(ReplicationInternal.java:475)
      5. com.couchbase.lite.replicator.ReplicationInternal$6$1$1.run(ReplicationInternal.java:504)
      6. com.couchbase.lite.Database$2.run(Database.java:551)
      6 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
      6. java.lang.Thread.run(Thread.java:818)
      6 frames