1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

Fix NPE and return Empty String instead of NULL values

This commit is contained in:
Reinhard Pointner 2016-04-12 06:19:48 +00:00
parent 9b60d6f206
commit 07fe359180

View File

@ -607,7 +607,8 @@ public class TMDbClient implements MovieIdentificationService {
}
public String get(PersonProperty key) {
return replaceSpace(fields.get(key), " ").trim();
// replace null with empty string and normalize spaces
return replaceSpace(Objects.toString(fields.get(key), ""), " ").trim();
}
public String getName() {