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.2.0~5^2~23 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=eccb0cbce2c88910dcad6ca832131f5de3c9d72c;p=fanfix-swing.git RemoteLib: re-allow progress with null meta --- diff --git a/library/RemoteLibraryServer.java b/library/RemoteLibraryServer.java index 4ee3f74d..ef17e28b 100644 --- a/library/RemoteLibraryServer.java +++ b/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;