GitHub user therajanmaurya opened a pull request:
https://github.com/apache/incubator-taverna-mobile/pull/13
Work flow null pointer exception
OnClick View Button to look full workflow some time app crashing while
loading the WorkFlow Run History.
` @Override
public void onLoadFinished(Loader<Workflow> workflowLoader, Workflow
workflow) {
runAdapter.setRunList(workflow.getWorkflow_runs());
mRecyclerView.setAdapter(runAdapter);
try {
if (runAdapter.getRunList().size() == 0) {
mRecyclerView.setVisibility(View.GONE);
emptyRunHistoryTextView.setVisibility(View.VISIBLE);
} else {
mRecyclerView.setVisibility(View.VISIBLE);
emptyRunHistoryTextView.setVisibility(View.GONE);
}
}catch(NullPointerException np){
np.printStackTrace();
}
// progressDialog.dismiss();
}
`
The NullPointer Exception was comming at the line `if
(runAdapter.getRunList().size() == 0)`.
That is giving NullPointerException.
Bug Resolve :+1:
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/therajanmaurya/incubator-taverna-mobile
WorkFlow_NullPointerException
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-taverna-mobile/pull/13.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #13
----
commit b21a8d57f4991a523afdea22bae38b65ca0812b2
Author: therajanmaurya <[email protected]>
Date: 2016-03-08T12:01:47Z
design support library added and images moved to drawable and implementing
Material Navigation drawer
commit d2055a998636949d5473d29ac8f79a4efaa4e908
Author: therajanmaurya <[email protected]>
Date: 2016-03-08T12:06:38Z
Style theme added
commit aa97a8520bb822bd34c39d5d6da4178d5c5876df
Author: therajanmaurya <[email protected]>
Date: 2016-03-08T15:05:15Z
chaning images into drawable and change - to _ in images names and removing
Material library and Added design support library
commit 460215a35f510c5b57ac672cc36df0b474e8eb88
Author: therajanmaurya <[email protected]>
Date: 2016-03-08T16:34:12Z
Material Design Navigation drawer Implemented
commit a6f311e253abb41e91193110783dd025a27f1828
Author: therajanmaurya <[email protected]>
Date: 2016-03-08T18:24:48Z
Material ViewPager Implemented done
commit 40339a975a0b79a79916257e91a7585d8272b2b5
Author: therajanmaurya <[email protected]>
Date: 2016-03-09T05:56:11Z
Status bar color fix and final touchup to Material NavigationBar,ViewPager
and TabLayout
commit 59163199647b5082ea948226c150ba751376a1a1
Author: therajanmaurya <[email protected]>
Date: 2016-03-09T07:02:53Z
workflow cardview item alignment done
commit 296168c99268cd29b35ef4240b4ed299f09bca1d
Author: therajanmaurya <[email protected]>
Date: 2016-03-09T07:50:27Z
final cardview alignment
commit 926aea060f5e5f038f2af86cb7c3d2b68f1291ec
Author: therajanmaurya <[email protected]>
Date: 2016-03-09T08:46:58Z
Cardview Showing perfect and full : final
commit d68798b32adcf45c036792872448c636cab87720
Author: therajanmaurya <[email protected]>
Date: 2016-03-09T14:22:40Z
Removed unnecessary file
commit cb4ff9ef2cf92021e502c2977a5f80ecb8b4b800
Author: therajanmaurya <[email protected]>
Date: 2016-03-09T15:55:22Z
NullPointer Exception on Workflow Run History Resolve
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---