Fix Crash when searching issues/pr (#547)

fix in pr and ms fragments

Fix Crash when searching issues/pr

Co-authored-by: M M Arif <mmarif@swatian.com>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org>
This commit is contained in:
6543 2020-06-24 17:05:02 +02:00 committed by M M Arif
parent 22943ca9cd
commit 4f79ea0156
3 changed files with 9 additions and 0 deletions

View File

@ -325,6 +325,9 @@ public class IssuesFragment extends Fragment {
List<Issues> arr = new ArrayList<>();
for(Issues d : issuesList) {
if(d == null || d.getTitle() == null || d.getBody() == null) {
continue;
}
if(d.getTitle().toLowerCase().contains(text) || d.getBody().toLowerCase().contains(text)) {
arr.add(d);
}

View File

@ -318,6 +318,9 @@ public class MilestonesFragment extends Fragment {
List<Milestones> arr = new ArrayList<>();
for(Milestones d : dataList) {
if(d == null || d.getTitle() == null || d.getDescription() == null) {
continue;
}
if(d.getTitle().toLowerCase().contains(text) || d.getDescription().toLowerCase().contains(text)) {
arr.add(d);
}

View File

@ -332,6 +332,9 @@ public class PullRequestsFragment extends Fragment {
List<PullRequests> arr = new ArrayList<>();
for(PullRequests d : prList) {
if(d == null || d.getTitle() == null || d.getBody() == null) {
continue;
}
if(d.getTitle().toLowerCase().contains(text) || d.getBody().toLowerCase().contains(text)) {
arr.add(d);
}