Fix SearchInfo's non-null MetaInfo being null when initialized or when 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/.
This commit is contained in:
Stypox 2023-12-21 21:39:25 +01:00 committed by GitHub
parent 91419ec6e8
commit 0518487d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,