fix: Another potential NPE

This commit is contained in:
Ahmad Ansori Palembani 2024-11-29 19:40:35 +07:00
parent 42b3dce0ef
commit 393ccb822e
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -56,7 +56,7 @@ data class BackupTracking(
syncId = track.sync_id.toInt(),
mediaId = track.media_id,
// forced not null so its compatible with 1.x backup system
libraryId = track.library_id!!,
libraryId = track.library_id ?: 0L,
title = track.title,
lastChapterRead = track.last_chapter_read,
totalChapters = track.total_chapters.toInt(),