summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2013-12-26 13:07:47 +0100
committerlado <herrlado@gmail.com>2013-12-26 13:07:47 +0100
commitb33ce0e0e2d5a49accd0c4d25c0a7555cbca8de0 (patch)
treea118416375fa48a5e37449d288198b568d3ee090
parentc6a14f2a4e5bf8773fe9cb38b36f281529b17dcc (diff)
downloadvdr-manager-b33ce0e0e2d5a49accd0c4d25c0a7555cbca8de0.tar.gz
vdr-manager-b33ce0e0e2d5a49accd0c4d25c0a7555cbca8de0.tar.bz2
possible npe fix
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java3
1 files changed, 3 insertions, 0 deletions
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<Epg> implements
private static final ArrayList<Epg> EMPTY = new ArrayList<Epg>(0);
private ArrayList<Epg> getCache() {
+ if(currentChannel == null){
+ return EMPTY;
+ }
final ArrayList<Epg> arrayList = EpgCache.CACHE.get(currentChannel
.getId());
if (arrayList == null) {