Skip to main content
Question

RevenueCat SDK crashing : java.lang.NullPointerException FontLoader.getCacheDirectory

  • January 20, 2026
  • 1 reply
  • 8 views

Forum|alt.badge.img

SDK version: 9.15.1

androidMinSdkVersion = 29androidCompileSdkVersion = 35androidTargetSdkVersion = 35

We are facing nullpointer crash in FontLoader. 

 Fatal Exception: java.lang.NullPointerException:

       at kotlin.UnsafeLazyImpl.getValue(Lazy.kt:81)

       at com.revenuecat.purchases.paywalls.FontLoader.getCacheDirectory(FontLoader.kt:36)

       at com.revenuecat.purchases.paywalls.FontLoader.ensureFoldersExist(FontLoader.kt:163)

       at com.revenuecat.purchases.paywalls.FontLoader.access$getContext$p(FontLoader.kt)

       at com.revenuecat.purchases.paywalls.FontLoader.access$ensureFoldersExist(FontLoader.kt)

       at com.revenuecat.purchases.paywalls.FontLoader$startFontDownload$1.invokeSuspend(FontLoader.kt:76)

       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)

       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)

       at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.java:111)

       at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)

       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.java:584)

       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)

       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)

       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)

        

 

1 reply

Cesar
RevenueCat Staff
Forum|alt.badge.img+3
  • RevenueCat Staff
  • January 20, 2026

Thank you for reporting this, and sorry you’re experiencing it.

Version 9.19.1 has a fix for this NPE. See https://github.com/RevenueCat/purchases-android/releases/tag/9.19.1