mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 02:34:39 +00:00
fix(reader): Fix potential NPE
This commit is contained in:
parent
6df9e4f745
commit
19ea7cbebd
1 changed files with 2 additions and 2 deletions
|
@ -356,8 +356,8 @@ class ReaderActivity : BaseActivity<ReaderActivityBinding>() {
|
|||
if (viewModel.needsInit()) {
|
||||
fromUrl = handleIntentAction(intent)
|
||||
if (!fromUrl) {
|
||||
val manga = intent.extras!!.getLong("manga", -1)
|
||||
val chapter = intent.extras!!.getLong("chapter", -1)
|
||||
val manga = intent.extras?.getLong("manga", -1L) ?: -1L
|
||||
val chapter = intent.extras?.getLong("chapter", -1L) ?: -1L
|
||||
if (manga == -1L || chapter == -1L) {
|
||||
finish()
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue