mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
There were a handful of cases where if there was no cached kctx there was no fallback and several KoptInterface methods would return nil, causing issues in various parts of KOReader (this happened with the migration to selected_text everywhere but it's unclear how that change caused this regression). In any case, from a correctness perspective it makes sense to have the corresponding fallback paths to create a new kctx if we couldn't find a cached one. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>