Fixed a potential null pointer in the task list refresh receiver:

pull/14/head
Sam Bosley 13 years ago
parent 5c19f75df4
commit fbb2db6482

@ -734,12 +734,15 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
|| !AstridApiConstants.BROADCAST_EVENT_REFRESH.equals(intent.getAction()))
return;
getActivity().runOnUiThread(new Runnable() {
@Override
public void run() {
refresh();
}
});
Activity activity = getActivity();
if (activity != null) {
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
refresh();
}
});
}
}
}

Loading…
Cancel
Save