diff options
author | lado <herrlado@gmail.com> | 2012-02-02 15:04:36 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2012-02-02 15:04:36 +0100 |
commit | 125343257f531941886f5ce9523c5ec5b422b6fa (patch) | |
tree | 8d59249b062ed2d2206244ec96ff126582c0e047 /vdrmanager/src/de | |
parent | 5f7f91013d38786e2b2e07328afcb0eddd759572 (diff) | |
download | vdr-manager-125343257f531941886f5ce9523c5ec5b422b6fa.tar.gz vdr-manager-125343257f531941886f5ce9523c5ec5b422b6fa.tar.bz2 |
avoid npe
Diffstat (limited to 'vdrmanager/src/de')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrManagerActivity.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrManagerActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrManagerActivity.java index bb6173c..4be184a 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrManagerActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrManagerActivity.java @@ -50,7 +50,10 @@ public class VdrManagerActivity extends Activity implements OnClickListener { findViewById(R.id.action_menu_recordings).setOnClickListener(this); findViewById(R.id.action_menu_timers).setOnClickListener(this); findViewById(R.id.action_menu_epg).setOnClickListener(this); - findViewById(R.id.action_menu_search).setOnClickListener(this); + View v = findViewById(R.id.action_menu_search); + if(v != null){ + v.setOnClickListener(this); + } findViewById(R.id.main_logo).setOnClickListener(this); if (Preferences.get().isWakeupEnabled() == false) { findViewById(R.id.action_menu_wakeup).setVisibility(View.GONE); |