ClassCastException after updating
minarja1 opened this issue · comments
minarja1 commented
Hello, I have updated a bunch of dependencies in my project, including:
- your library (rssparser) to the MavenCentral version
- kotlin to version 1.5.10
and now I'm getting the following error whenever I try to parse any feed:
E/RSSSourceRepository$updateDB: java.lang.ClassCastException: kotlin.Unit cannot be cast to com.prof.rssparser.Channel
at com.prof.rssparser.Parser$getChannel$2.invokeSuspend(Parser.kt:177)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
NOTE: This issue does not appear when I downgrade RSSParser to 3.1.2. Only in version 3.1.3 and up.
Marco Gomiero commented
I should have fixed it yesterday! 😅 68dc46a
I'm gonna release a new version of the library between today and tomorrow.
Marco Gomiero commented
I've just released the new version! (It could take some time before MavenCentral will show it)