mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-11 22:08:01 -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) {
|
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() {
|
public String getName() {
|
||||||
|
Loading…
Reference in New Issue
Block a user