RemoteLib: re-allow progress with null meta
authorNiki Roo <niki@nikiroo.be>
Fri, 1 May 2020 09:16:19 +0000 (11:16 +0200)
committerNiki Roo <niki@nikiroo.be>
Fri, 1 May 2020 09:16:19 +0000 (11:16 +0200)
src/be/nikiroo/fanfix/library/RemoteLibraryServer.java

index 4ee3f74d221c3497978cc57d70fc935fd466579f..ef17e28b25b134d60a266ac1b31b7fd0b2c5da1d 100644 (file)
@@ -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;