1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-21 23:38:50 -05:00

Omit empty elements

This commit is contained in:
Reinhard Pointner 2019-06-10 23:13:04 +07:00
parent aa7234982d
commit b8d9f75de8

View File

@ -12,7 +12,6 @@ import java.io.StringWriter;
import java.net.URL;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
import java.util.Optional;
import java.util.stream.IntStream;
import java.util.stream.Stream;
@ -338,7 +337,7 @@ public class AnimeList {
@Override
public String marshal(Integer i) throws Exception {
return Objects.toString(i, "");
return i == null ? null : Integer.toString(i);
}
}