Skip to content

Commit 97717df

Browse files
koukibadrHatakeKakashri
authored andcommitted
fix: handle nullable nextPage behavior when searching albums #12401
1 parent 474efbe commit 97717df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/fragments/list/search/SearchFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ public void handleNextItems(final ListExtractor.InfoItemsPage<?> result) {
10901090
infoListAdapter.addInfoItemList(result.getItems());
10911091
nextPage = result.getNextPage();
10921092

1093-
if (!result.getErrors().isEmpty()) {
1093+
if (!result.getErrors().isEmpty() && nextPage != null) {
10941094
showSnackBarError(new ErrorInfo(result.getErrors(), UserAction.SEARCHED,
10951095
"\"" + searchString + "\" → pageUrl: " + nextPage.getUrl() + ", "
10961096
+ "pageIds: " + nextPage.getIds() + ", "

0 commit comments

Comments
 (0)