Skip to content

Commit b1a899f

Browse files
committed
Fix null pointer exception
1 parent 3fdc0e7 commit b1a899f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamInfoItemExtractor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,10 @@ public boolean isShortFormContent() throws ParsingException {
350350
.orElse(null);
351351

352352
if (!isNullOrEmpty(thumbnailTimeOverlay)) {
353-
isShort = thumbnailTimeOverlay.getString("style")
353+
isShort = thumbnailTimeOverlay.getString("style", "")
354354
.equalsIgnoreCase("SHORTS")
355355
|| thumbnailTimeOverlay.getObject("icon")
356-
.getString("iconType")
356+
.getString("iconType", "")
357357
.toLowerCase()
358358
.contains("shorts");
359359
}

0 commit comments

Comments
 (0)