Issue found in Native App or Hybrid App: Native App
OS Version: Any
Device: Any
Steps to reproduce: Opening the native app from background.
Actual behavior: App crashes
Expected Behavior: App doesn't crash.
Error Log:
Fatal Exception: java.lang.IllegalStateException: Null interceptor: [null, com.salesforce.androidsdk.rest.RestClient$OAuthRefreshInterceptor@98f2dde]
at okhttp3.OkHttpClient.verifyClientState(OkHttpClient.kt:248)
at okhttp3.OkHttpClient.<init>(OkHttpClient.kt:244)
at okhttp3.OkHttpClient$Builder.build(OkHttpClient.kt:1069)
at com.salesforce.androidsdk.rest.RestClient.setOkHttpClient(RestClient.java:235)
at com.salesforce.androidsdk.rest.RestClient.<init>(RestClient.java:146)
at com.salesforce.androidsdk.rest.ClientManager.peekRestClient(ClientManager.java:295)
at com.salesforce.androidsdk.rest.ClientManager.peekRestClient(ClientManager.java:161)
at com.salesforce.androidsdk.rest.ClientManager.getRestClient(ClientManager.java:138)
at com.salesforce.androidsdk.ui.SalesforceActivityDelegate.onResume(SalesforceActivityDelegate.java:91)
Seems like in RestClient.java there is one global oAuthInterceptor, that is set by setOAuthRefreshInterceptor() so I am really confused on how there can be a list of interceptors as shown in the error log.
Please fill out the following details:
Seems like in RestClient.java there is one global oAuthInterceptor, that is set by
setOAuthRefreshInterceptor()
so I am really confused on how there can be a list of interceptors as shown in the error log.Thanks!