https://kotlinlang.org logo
#koin
Title
# koin
s

Shervin

09/07/2023, 7:29 AM
Hey all, we are facing this issue (Only for Samsung devices so far): I know the error message is a bit generic, but anyone might have a clue what might be the issue ? We are using Koin 3.4.2.
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Class.isPrimitive()' on a null object reference
at kotlin.jvm.JvmClassMappingKt.getJavaObjectType(JvmClassMapping.kt:60)
at kotlin.reflect.jvm.internal.KClassImpl.hashCode(KClassImpl.kt)
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
at org.koin.ext.KClassExtKt.getFullName(KClassExt.kt:25)
at org.koin.core.definition.BeanDefinitionKt.indexKey(BeanDefinition.kt:95)
at org.koin.core.registry.InstanceRegistry.resolveDefinition$koin_core(InstanceRegistry.kt:106)
at org.koin.core.registry.InstanceRegistry.resolveInstance$koin_core(InstanceRegistry.kt:116)
at org.koin.core.scope.Scope.resolveValue(Scope.kt:246)
at org.koin.core.scope.Scope.resolveInstance(Scope.kt:231)
at org.koin.core.scope.Scope.get(Scope.kt:210)
at org.koin.core.scope.Scope.getOrNull(Scope.kt:175)
at org.koin.androidx.workmanager.factory.KoinWorkerFactory.createWorker(KoinWorkerFactory.kt:47)
at androidx.work.DelegatingWorkerFactory.createWorker(DelegatingWorkerFactory.java:71)
at androidx.work.WorkerFactory.createWorkerWithDefaultFallback(WorkerFactory.java)
at androidx.work.impl.WorkerWrapper.runWorker(WorkerWrapper.java:243)
at androidx.work.impl.WorkerWrapper.run(WorkerWrapper.java:145)
at androidx.work.impl.utils.SerialExecutorImpl$Task.run(SerialExecutorImpl.java:96)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
a

arnaud.giuliani

09/07/2023, 8:37 AM
is it on old device? looks like JVM access problem
s

Shervin

09/07/2023, 8:37 AM
Unfortunately not so old, OS version: android 13 Model: Galaxy S21+ 5G
a

arnaud.giuliani

09/08/2023, 3:10 PM
effectively, weird case 🤔 Do you reproduce it regulary or just this device?
s

Shervin

09/11/2023, 8:10 AM
I can not reproduce it.