We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 474efbe commit 97717dfCopy full SHA for 97717df
1 file changed
app/src/main/java/org/schabi/newpipe/fragments/list/search/SearchFragment.java
@@ -1090,7 +1090,7 @@ public void handleNextItems(final ListExtractor.InfoItemsPage<?> result) {
1090
infoListAdapter.addInfoItemList(result.getItems());
1091
nextPage = result.getNextPage();
1092
1093
- if (!result.getErrors().isEmpty()) {
+ if (!result.getErrors().isEmpty() && nextPage != null) {
1094
showSnackBarError(new ErrorInfo(result.getErrors(), UserAction.SEARCHED,
1095
"\"" + searchString + "\" → pageUrl: " + nextPage.getUrl() + ", "
1096
+ "pageIds: " + nextPage.getIds() + ", "
0 commit comments