From b33ce0e0e2d5a49accd0c4d25c0a7555cbca8de0 Mon Sep 17 00:00:00 2001 From: lado Date: Thu, 26 Dec 2013 13:07:47 +0100 Subject: possible npe fix --- vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vdrmanager/src/de/bjusystems') diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java index 7b923e9..1d4a385 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java @@ -282,6 +282,9 @@ public class EventEpgListActivity extends BaseTimerEditActivity implements private static final ArrayList EMPTY = new ArrayList(0); private ArrayList getCache() { + if(currentChannel == null){ + return EMPTY; + } final ArrayList arrayList = EpgCache.CACHE.get(currentChannel .getId()); if (arrayList == null) { -- cgit v1.2.3