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:
parent
9b60d6f206
commit
07fe359180
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user