From: Niki Roo Date: Fri, 1 May 2020 09:16:19 +0000 (+0200) Subject: RemoteLib: re-allow progress with null meta X-Git-Tag: fanfix-swing-1.1.0~33 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=323b851bb7b14fd4ed965986c4f06f80feed00b3;p=fanfix-swing.git RemoteLib: re-allow progress with null meta --- diff --git a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java index 4ee3f74d..ef17e28b 100644 --- a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java +++ b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java @@ -512,12 +512,14 @@ public class RemoteLibraryServer extends ServerObject { } private MetaData removeCover(MetaData meta) { - MetaData light; - if (meta.getCover() == null) { - light = meta; - } else { - light = meta.clone(); - light.setCover(null); + MetaData light = null; + if (meta != null) { + if (meta.getCover() == null) { + light = meta; + } else { + light = meta.clone(); + light.setCover(null); + } } return light;