changeset 117:91f80da38f96

host editor database values override summary text only if non-empty
author Carl Byington <carl@five-ten-sg.com>
date Wed, 18 Jun 2014 16:44:12 -0700
parents 524f9d41e046
children 9c0aaf27ce28
files src/com/five_ten_sg/connectbot/HostEditorActivity.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/HostEditorActivity.java	Wed Jun 18 16:17:14 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/HostEditorActivity.java	Wed Jun 18 16:44:12 2014 -0700
@@ -370,7 +370,7 @@
             }
 
             String v = (String)value;
-            if (v.length() == 0) pref.setSummary(value);
+            if ((v != null) && (v.length() > 0)) pref.setSummary(value);
         }
     }