2

我的 android 应用程序的 Crashlytics 报告显示,我的相当多的用户收到以下空指针异常。我收到此错误的大多数用户都在Android 6上。仅当构建被混淆时才会发生。

崩溃是由调用引起的,

org.stellar.sdk.Server(String uri)

我该如何解决?任何帮助,将不胜感激。

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 
 'java.util.Enumeration java.security.KeyStore.aliases()' on a null object reference
 at com.android.org.conscrypt.TrustManagerImpl.acceptedIssuers(TrustManagerImpl.java:185)
 at com.android.org.conscrypt.TrustManagerImpl.getAcceptedIssuers(TrustManagerImpl.java:603)
 at shadow.okhttp3.internal.platform.Platform.buildTrustRootIndex(Platform.java)
 at shadow.okhttp3.internal.platform.Platform.afterHandshake(Platform.java)
 at shadow.okhttp3.internal.tls.CertificateChainCleaner.get(CertificateChainCleaner.java:8)
 at shadow.okhttp3.OkHttpClient.<init>(OkHttpClient.java:8)
 at shadow.okhttp3.OkHttpClient$Builder.build(OkHttpClient.java:7)
 at org.stellar.sdk.Server.<init>(Server.java:7)
 at com.myapp.MyStellarManager.<clinit>(MyStellarManager.java)
 at com.myapp.MainVM$observableData$1.invokeSuspend(MainVM.java:2)
 at kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(Intrinsics.java)
 at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.java:2)
 at kotlinx.coroutines.scheduling.CoroutineScheduler.access$getCorePoolSize$p(CoroutineScheduler.java)
 at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.java:18)
 at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.java:18)
4

0 回答 0