diff src/com/five_ten_sg/connectbot/HostEditorActivity.java @ 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 5eda34fb607f
children 9c0aaf27ce28
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);
         }
     }