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 2dd11f7 commit 3661565Copy full SHA for 3661565
1 file changed
app/src/main/java/org/schabi/newpipe/fragments/list/search/SearchFragment.java
@@ -1067,7 +1067,7 @@ public void handleNextItems(final ListExtractor.InfoItemsPage<?> result) {
1067
infoListAdapter.addInfoItemList(result.getItems());
1068
nextPage = result.getNextPage();
1069
1070
- if (!result.getErrors().isEmpty()) {
+ if (!result.getErrors().isEmpty() && nextPage != null) {
1071
showSnackBarError(new ErrorInfo(result.getErrors(), UserAction.SEARCHED,
1072
"\"" + searchString + "\" → pageUrl: " + nextPage.getUrl() + ", "
1073
+ "pageIds: " + nextPage.getIds() + ", "
0 commit comments