Skip to content

Commit

Permalink
Fix null pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
chowder committed Oct 31, 2022
1 parent 3fdc0e7 commit b1a899f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,10 @@ public boolean isShortFormContent() throws ParsingException {
.orElse(null);

if (!isNullOrEmpty(thumbnailTimeOverlay)) {
isShort = thumbnailTimeOverlay.getString("style")
isShort = thumbnailTimeOverlay.getString("style", "")
.equalsIgnoreCase("SHORTS")
|| thumbnailTimeOverlay.getObject("icon")
.getString("iconType")
.getString("iconType", "")
.toLowerCase()
.contains("shorts");
}
Expand Down

0 comments on commit b1a899f

Please sign in to comment.