mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 09:27:48 +01:00
Avoid crashing if getChapterUrl is not implemented
Fixes #9105
(cherry picked from commit ceaf579cb0
)
This commit is contained in:
parent
c58b495433
commit
f656a37045
1 changed files with 6 additions and 1 deletions
|
@ -582,7 +582,12 @@ class ReaderViewModel(
|
|||
val sChapter = getCurrentChapter()?.chapter ?: return null
|
||||
val source = getSource() ?: return null
|
||||
|
||||
return source.getChapterUrl(sChapter)
|
||||
return try {
|
||||
source.getChapterUrl(sChapter)
|
||||
} catch (e: Exception) {
|
||||
logcat(LogPriority.ERROR, e)
|
||||
null
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue