From 43e0aa0920c321cd4e8be9456b4934eaad26eb83 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 5 Jan 2023 20:34:02 +0100 Subject: [PATCH] Fix crash when restoring local playlists --- .../java/com/github/libretube/db/obj/LocalPlaylistItem.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/libretube/db/obj/LocalPlaylistItem.kt b/app/src/main/java/com/github/libretube/db/obj/LocalPlaylistItem.kt index 65d9dc134..c87db7b9c 100644 --- a/app/src/main/java/com/github/libretube/db/obj/LocalPlaylistItem.kt +++ b/app/src/main/java/com/github/libretube/db/obj/LocalPlaylistItem.kt @@ -7,8 +7,8 @@ import androidx.room.PrimaryKey @Entity data class LocalPlaylistItem( @PrimaryKey(autoGenerate = true) val id: Int = 0, - @ColumnInfo var playlistId: Int, - @ColumnInfo val videoId: String, + @ColumnInfo var playlistId: Int = 0, + @ColumnInfo val videoId: String = "", @ColumnInfo val title: String? = null, @ColumnInfo val uploadDate: String? = null, @ColumnInfo val uploader: String? = null,