diff --git a/src/main/kotlin/fr/shikkanime/services/ImageService.kt b/src/main/kotlin/fr/shikkanime/services/ImageService.kt index cd80cbf9..0ad983ad 100644 --- a/src/main/kotlin/fr/shikkanime/services/ImageService.kt +++ b/src/main/kotlin/fr/shikkanime/services/ImageService.kt @@ -248,7 +248,10 @@ object ImageService { } episodeService.findAllUUIDAndImage().forEach { - episodeService.addImage(it[0] as UUID, it[1] as String) + episodeService.addImage( + it[0] as UUID, + (it[1] as String?)?.ifBlank { null } ?: Constant.DEFAULT_IMAGE_PREVIEW, + ) } }