From f5ecd266bd8d7704405336dfb9908b23979b3c67 Mon Sep 17 00:00:00 2001 From: lado Date: Thu, 14 Feb 2013 23:34:59 +0100 Subject: Feature #864 --- vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrListActivity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrListActivity.java index 87c9439..85dbe8f 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrListActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/VdrListActivity.java @@ -110,7 +110,7 @@ public class VdrListActivity extends ListActivity } Vdr vdr = getItem(position); - String name = vdr.getName(); + String name = (vdr.getName() != null ? vdr.getName() : ""); String host = vdr.getHost(); holder.text2.setText(host); @@ -164,7 +164,7 @@ public class VdrListActivity extends ListActivity /* * (non-Javadoc) - * + * * @see * android.widget.AdapterView.OnItemClickListener#onItemClick(android.widget * .AdapterView, android.view.View, int, long) @@ -176,7 +176,7 @@ public class VdrListActivity extends ListActivity /** * Start {@link VdrPreferencesActivity} to create or edit a vdr - * + * * @param id * may be null. Then a new vdr is created */ @@ -188,7 +188,7 @@ public class VdrListActivity extends ListActivity /* * (non-Javadoc) - * + * * @see android.app.Activity#onActivityResult(int, int, * android.content.Intent) */ -- cgit v1.2.3