mirror of https://codeberg.org/gitnex/GitNex.git
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:
parent
22943ca9cd
commit
4f79ea0156
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue