From eccb0cbce2c88910dcad6ca832131f5de3c9d72c Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Fri, 1 May 2020 11:16:19 +0200 Subject: [PATCH] RemoteLib: re-allow progress with null meta --- library/RemoteLibraryServer.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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; -- 2.27.0