Skip to content

Commit

Permalink
Fix SearchInfo's non-null MetaInfo being null when initialized or whe…
Browse files Browse the repository at this point in the history
…n an extraction error occurs (#1141)

The meta info might have been null either when SearchInfo is first initialized, or when extractor.getMetaInfo() throws an exception in getInfo().
This caused NewPipe to crash instead of showing a nice error in https://www.reddit.com/r/youtube/comments/184ttmw/what_exactly_about_blue_whales_has_youtube_so/.
  • Loading branch information
Stypox authored Dec 21, 2023
1 parent 91419ec commit 0518487
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class SearchInfo extends ListInfo<InfoItem> {
private final String searchString;
private String searchSuggestion;
private boolean isCorrectedSearch;
private List<MetaInfo> metaInfo;
private List<MetaInfo> metaInfo = List.of();

public SearchInfo(final int serviceId,
final SearchQueryHandler qIHandler,
Expand Down

0 comments on commit 0518487

Please sign in to comment.