Replies: 4 comments 2 replies
-
What's on line 84 of your Could you share the complete stacktrace from Crashlytics? |
Beta Was this translation helpful? Give feedback.
-
@mickael-menu Sure here is full crashlitics but please note that this issue appear for about 10% of users not all users Also i have attached EpubReaderFragment onCreate(): Fatal Exception: java.lang.RuntimeException Unable to start activity ComponentInfo{customreader.reader.ReaderActivity}: java.lang.IllegalStateException: Required value was null. Caused by java.lang.IllegalStateException: Required value was null. |
Beta Was this translation helpful? Give feedback.
-
@mickael-menu and here is also ReaderActivity.kt lin 72 on Create() |
Beta Was this translation helpful? Give feedback.
-
This happens because the process was killed and the reader activity restarted. In this situation, a dummy Which doesn't suit the I recommend upgrading to Readium 2.4.0 as we added dummy navigator factories which help prevent crashes after process death: https://github.com/readium/kotlin-toolkit/blob/main/CHANGELOG.md#navigator Note that the code you shared is part of the test app, which is just an example and is not updated with the Readium toolkit. If you copy samples from it, you need to take ownership of the code and maintain it. I'm closing the issue as there's nothing to do in the toolkit. |
Beta Was this translation helpful? Give feedback.
-
I'm currently using version 2.2.1 of readium (https://github.com/readium/kotlin-toolkit/blob/2.2.1/test-app/src/main/java/org/readium/r2/testapp/reader/EpubReaderFragment.kt).
I've encountered an issue reported by Crashlytics. The error, a java.lang.IllegalStateException, specifically states: "Required value was null." The problem seems to be occurring in the reader.EpubReaderFragment.onCreate method at line 84.
Interestingly, this issue is not consistent across all devices. It occurs on some devices but not on others, even though they share the same model and Android version.
Has anyone else come across this particular issue, or does anyone have insights on how to resolve it? Any help would be greatly appreciated i have attached code snippets of where crashlytics has reported issue.
EpubReaderFragment.kt
Beta Was this translation helpful? Give feedback.
All reactions