Skip to content

Commit

Permalink
Merge pull request #1027 from wallabag/fix_IndexOutOfBoundsException
Browse files Browse the repository at this point in the history
Fix IndexOutOfBoundsException in ManageArticleTagsActivity
  • Loading branch information
tcitworld authored Jul 27, 2020
2 parents ca9538d + 245e631 commit 9089fba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ private static List<Tag> filterTagList(String filterLabel, List<Tag> src, List<T
out.clear();

if (TextUtils.isEmpty(filterLabel) && excludeList.isEmpty() || src.isEmpty()) {
out.addAll(limit >= 0 ? src.subList(0, limit) : src);
out.addAll(limit >= 0 ? src.subList(0, Math.min(limit, src.size())) : src);
return out;
}

Expand Down

0 comments on commit 9089fba

Please sign in to comment.