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:
parent
91419ec6e8
commit
0518487d26
|
@ -19,7 +19,7 @@ public class SearchInfo extends ListInfo<InfoItem> {
|
||||||
private final String searchString;
|
private final String searchString;
|
||||||
private String searchSuggestion;
|
private String searchSuggestion;
|
||||||
private boolean isCorrectedSearch;
|
private boolean isCorrectedSearch;
|
||||||
private List<MetaInfo> metaInfo;
|
private List<MetaInfo> metaInfo = List.of();
|
||||||
|
|
||||||
public SearchInfo(final int serviceId,
|
public SearchInfo(final int serviceId,
|
||||||
final SearchQueryHandler qIHandler,
|
final SearchQueryHandler qIHandler,
|
||||||
|
|
Loading…
Reference in New Issue