git://git.nikiroo.be
/
fanfix-swing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9064182
)
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)
src/be/nikiroo/fanfix/library/RemoteLibraryServer.java
patch
|
blob
|
blame
|
history
diff --git
a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java
b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java
index 4ee3f74d221c3497978cc57d70fc935fd466579f..ef17e28b25b134d60a266ac1b31b7fd0b2c5da1d 100644
(file)
--- 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;