fix(goodreads): handle null and blank timestamps in date conversion (#3034)

This commit is contained in:
Balázs Szücs
2026-02-26 23:45:18 -07:00
committed by GitHub
parent 0c23424f68
commit 88d7192d87
@@ -417,6 +417,9 @@ public class GoodReadsParser implements BookParser, DetailedMetadataProvider {
}
private LocalDate convertToLocalDate(String timestamp) {
if (timestamp == null || timestamp.isBlank() || "null".equals(timestamp)) {
return null;
}
try {
long millis = Long.parseLong(timestamp);
return Instant.ofEpochMilli(millis)