mirror of
https://github.com/TeamPiped/Piped-Backend
synced 2025-09-04 04:21:20 +02:00
Fix NPE.
This commit is contained in:
parent
8b0c7d1eba
commit
9fe9770714
@ -165,7 +165,8 @@ public class ResponseHelper {
|
||||
info.getStreamSegments().forEach(
|
||||
segment -> segments.add(new ChapterSegment(segment.getTitle(), segment.getStartTimeSeconds())));
|
||||
|
||||
long time = info.getUploadDate().offsetDateTime().toInstant().toEpochMilli();
|
||||
long time = info.getUploadDate() != null ? info.getUploadDate().offsetDateTime().toInstant().toEpochMilli()
|
||||
: System.currentTimeMillis();
|
||||
|
||||
if (info.getUploadDate() != null && System.currentTimeMillis() - time < TimeUnit.DAYS.toMillis(10))
|
||||
updateViews(info.getId(), info.getViewCount(), time, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user