git://git.nikiroo.be
/
nikiroo-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5d1f0e
)
RemoteLib: re-allow progress with null meta
author
Niki Roo
<niki@nikiroo.be>
Fri, 1 May 2020 09:16:19 +0000
(11:16 +0200)
committer
Niki Roo
<niki@nikiroo.be>
Fri, 1 May 2020 09:16:19 +0000
(11:16 +0200)
library/RemoteLibraryServer.java
patch
|
blob
|
blame
|
history
diff --git
a/library/RemoteLibraryServer.java
b/library/RemoteLibraryServer.java
index 4ee3f74d221c3497978cc57d70fc935fd466579f..ef17e28b25b134d60a266ac1b31b7fd0b2c5da1d 100644
(file)
--- 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;