ava.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes(java.lang.String)' on a null object reference

GitHub | emauro | 6 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

    GitHub comment 22#247302567

    GitHub | 6 months ago | emauro
    ava.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes(java.lang.String)' on a null object reference

    Root Cause Analysis

    1. ava.lang.NullPointerException

      Attempt to invoke virtual method 'byte[] java.lang.String.getBytes(java.lang.String)' on a null object reference

      at com.burgstaller.okhttp.digest.DigestAuthenticator.getBytes()
    2. com.burgstaller.okhttp
      AuthenticationCacheInterceptor.intercept
      1. com.burgstaller.okhttp.digest.DigestAuthenticator.getBytes(DigestAuthenticator.java:452)
      2. com.burgstaller.okhttp.digest.DigestAuthenticator.createDigestHeader(DigestAuthenticator.java:335)
      3. com.burgstaller.okhttp.digest.DigestAuthenticator.authenticateWithState(DigestAuthenticator.java:197)
      4. com.burgstaller.okhttp.DispatchingAuthenticator.authenticateWithState(DispatchingAuthenticator.java:55)
      5. com.burgstaller.okhttp.AuthenticationCacheInterceptor.intercept(AuthenticationCacheInterceptor.java:32)
      5 frames
    3. okhttp3.internal.http
      RealInterceptorChain.proceed
      1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
      2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
      2 frames
    4. com.xxxxxxxxx.xxxxx
      HTTPClient$1.intercept
      1. com.xxxxxxxxx.xxxxx.singleton.HTTPClient$1.intercept(HTTPClient.java:64)
      1 frame
    5. okhttp3.internal.http
      RealInterceptorChain.proceed
      1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
      2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
      2 frames
    6. okhttp3
      RealCall$AsyncCall.execute
      1. okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170)
      2. okhttp3.RealCall.access$100(RealCall.java:33)
      3. okhttp3.RealCall$AsyncCall.execute(RealCall.java:120)
      3 frames
    7. okhttp3.internal
      NamedRunnable.run
      1. okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
      1 frame
    8. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      3. java.lang.Thread.run(Thread.java:818)
      3 frames