Repository: incubator-taverna-mobile
Updated Branches:
  refs/heads/master a716e2ffc -> 0f6f2ee63


fix: search result null issue


Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/commit/0f6f2ee6
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/tree/0f6f2ee6
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/diff/0f6f2ee6

Branch: refs/heads/master
Commit: 0f6f2ee63fc251c978eefeecfb3c0a8c994f69d3
Parents: a716e2f
Author: Sagar <kumarsagar15...@gmail.com>
Authored: Tue Feb 20 10:43:22 2018 +0530
Committer: Sagar <kumarsagar15...@gmail.com>
Committed: Tue Feb 20 10:43:22 2018 +0530

----------------------------------------------------------------------
 .../org/apache/taverna/mobile/ui/workflow/WorkflowPresenter.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/blob/0f6f2ee6/app/src/main/java/org/apache/taverna/mobile/ui/workflow/WorkflowPresenter.java
----------------------------------------------------------------------
diff --git 
a/app/src/main/java/org/apache/taverna/mobile/ui/workflow/WorkflowPresenter.java
 
b/app/src/main/java/org/apache/taverna/mobile/ui/workflow/WorkflowPresenter.java
index 0856f63..18a166a 100644
--- 
a/app/src/main/java/org/apache/taverna/mobile/ui/workflow/WorkflowPresenter.java
+++ 
b/app/src/main/java/org/apache/taverna/mobile/ui/workflow/WorkflowPresenter.java
@@ -135,7 +135,8 @@ public class WorkflowPresenter extends 
BasePresenter<WorkflowMvpView> {
                         @Override
                         public void onNext(Search search) {
                             getMvpView().removeLoadMoreProgressbar();
-                            if (search.getWorkflowList().size() > 0) {
+                            if (search.getWorkflowList() != null &&
+                                    search.getWorkflowList().size() > 0) {
                                 
getMvpView().showSearchResult(search.getWorkflowList());
                             } else {
                                 
getMvpView().showSnackBar(R.string.msg_no_workflow_found);

Reply via email to