Fixed NullPointerException in SearchFragment

This commit is contained in:
daniel oeh 2014-10-05 18:57:02 +02:00
parent 19cb896800
commit 78bedbbcb0
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ public class SearchFragment extends ListFragment {
private final EventDistributor.EventListener contentUpdate = new EventDistributor.EventListener() {
@Override
public void update(EventDistributor eventDistributor, Integer arg) {
if ((arg & (EventDistributor.DOWNLOAD_QUEUED)) != 0) {
if ((arg & (EventDistributor.DOWNLOAD_QUEUED)) != 0 && feedItemDialog != null) {
feedItemDialog.updateMenuAppearance();
}
if ((arg & (EventDistributor.UNREAD_ITEMS_UPDATE