summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2013-03-23 09:38:10 (GMT)
committeranbr <vdr07@deltab.de>2013-03-23 09:38:10 (GMT)
commit49f5d794deaab5001782ce74a3ab36b7f7251579 (patch)
tree28fc0989fb4b86f62293be1a3714ea8e61e59bb2
parent958443c2debab111101a4705be854b2349510158 (diff)
downloadvdr-plugin-dvdswitch-49f5d794deaab5001782ce74a3ab36b7f7251579.tar.gz
vdr-plugin-dvdswitch-49f5d794deaab5001782ce74a3ab36b7f7251579.tar.bz2
Crash when image directory is empty (Closes: #1308)
-rw-r--r--HISTORY3
-rw-r--r--menu.c7
2 files changed, 7 insertions, 3 deletions
diff --git a/HISTORY b/HISTORY
index 58665d2..aaa7761 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1,5 +1,8 @@
VDR Plugin 'dvdswitch' Revision History
---------------------------------------
+
+- Fix: Crash when image directory is empty, Patch from Matthias Schwarzott (#1308)
+
2012-10-03: Version 0.2.1
- Create image - show wrong selected sub folder
- Can't assign keymappping with 'Commands' (Closes: #1015)
diff --git a/menu.c b/menu.c
index 09a0ae2..010a491 100644
--- a/menu.c
+++ b/menu.c
@@ -740,9 +740,10 @@ eOSState cMainMenu::MenuMove(eKeys Key)
SetHelp();
mItem = (cMainMenuItem*)Get(Current());
- MainMenuOptions.setLastSelectItemName(mItem->FileName());
- MainMenuOptions.LastSelectItemType(mItem->Type());
-
+ if(mItem) {
+ MainMenuOptions.setLastSelectItemName(mItem->FileName());
+ MainMenuOptions.LastSelectItemType(mItem->Type());
+ }
return state;
}