Fixed a potential null pointer in filter list refresh receiver

pull/14/head
Sam Bosley 13 years ago
parent 7ca89ffa3a
commit 0b34b8c8ae

@ -543,12 +543,15 @@ public class FilterListFragment extends ListFragment {
if(intent == null || !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