Skip to content

Commit 2d70263

Browse files
author
Chris Bellew
committed
Fixed crash that occurred when a tv episode has no air date defined.
1 parent f404c86 commit 2d70263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mobile/src/main/java/com/atomjack/vcfp/services/PlexSearchService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ public void onSuccess(MediaContainer mc)
14631463
PlexVideo latestVideo = null;
14641464
for(int j=0;j<mc.videos.size();j++) {
14651465
PlexVideo video = mc.videos.get(j);
1466-
if(latestVideo == null || latestVideo.airDate().before(video.airDate())) {
1466+
if(latestVideo == null || (video.airDate() != null && latestVideo.airDate().before(video.airDate()))) {
14671467
// video.showTitle = video.grandparentTitle;
14681468
// video.parentArt = mc.art;
14691469
// video.grandparentThumb = mc.art.replaceAll("\\/art\\/", "\\/thumb\\/");

0 commit comments

Comments
 (0)