Fixed a potential null pointer when showing lists help popover on tablets

pull/14/head
Sam Bosley 14 years ago
parent a24821f66e
commit 024f1de1c4

@ -922,7 +922,9 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
AstridActivity activity = (AstridActivity) getActivity(); AstridActivity activity = (AstridActivity) getActivity();
if (activity != null) { if (activity != null) {
if (AndroidUtilities.isTabletSized(activity)) { if (AndroidUtilities.isTabletSized(activity)) {
activity.getFilterListFragment().showAddListPopover(); FilterListFragment flf = activity.getFilterListFragment();
if (flf != null)
flf.showAddListPopover();
} else { } else {
ActionBar ab = activity.getSupportActionBar(); ActionBar ab = activity.getSupportActionBar();
View anchor = ab.getCustomView().findViewById(R.id.lists_nav); View anchor = ab.getCustomView().findViewById(R.id.lists_nav);

Loading…
Cancel
Save