mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-19 07:23:56 +00:00
fix: null media.users
This commit is contained in:
@@ -202,7 +202,6 @@ object Anilist {
|
||||
if (!json.text.startsWith("{")) {
|
||||
throw Exception(currContext()?.getString(R.string.anilist_down))
|
||||
}
|
||||
if (show) Logger.log("Anilist Response: ${json.text}")
|
||||
json.parsed()
|
||||
} else null
|
||||
} catch (e: Exception) {
|
||||
|
||||
@@ -573,7 +573,7 @@ class MediaInfoFragment : Fragment() {
|
||||
parent.addView(root)
|
||||
}
|
||||
}
|
||||
val users = media.users!!
|
||||
val users: ArrayList<User> = media.users ?: arrayListOf()
|
||||
if (Anilist.token != null && media.userStatus != null) {
|
||||
users.add(0,
|
||||
User(
|
||||
|
||||
Reference in New Issue
Block a user