Skip to content

Commit 632e7c6

Browse files
committed
Fix crash
1 parent 06ad19f commit 632e7c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readium/navigator/src/main/java/org/readium/r2/navigator/pager/R2EpubPageFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ internal class R2EpubPageFragment : Fragment() {
418418
}
419419

420420
internal fun loadLocator(locator: Locator) {
421-
if (!isLoaded.value) {
421+
if (!isLoaded.value || view == null) {
422422
pendingLocator = locator
423423
return
424424
}

0 commit comments

Comments
 (0)