From 323b851bb7b14fd4ed965986c4f06f80feed00b3 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 --- .../fanfix/library/RemoteLibraryServer.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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; -- 2.27.0