aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/utils/UIHelper.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-03 23:50:48 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-03 23:50:48 +0200
commitbd9dba1a69e2a5523b4d0d7e445d10b6197c3329 (patch)
tree90bdae99830b539e57c1301d4f5be843a07cd7cf /src/eu/siacs/conversations/utils/UIHelper.java
parent91aeffae1b94766dd89d061b55a65741ba42be66 (diff)
parenta0fc1c6c77aea1d99078706cf2bee1c5efd246a4 (diff)
Merge branch 'compression' of https://github.com/rtreffer/Conversations into rtreffer-compression
Diffstat (limited to 'src/eu/siacs/conversations/utils/UIHelper.java')
-rw-r--r--src/eu/siacs/conversations/utils/UIHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/utils/UIHelper.java b/src/eu/siacs/conversations/utils/UIHelper.java
index c0e5eb7c..9b9fd8a9 100644
--- a/src/eu/siacs/conversations/utils/UIHelper.java
+++ b/src/eu/siacs/conversations/utils/UIHelper.java
@@ -66,7 +66,7 @@ public class UIHelper {
}
private static Bitmap getUnknownContactPicture(String name, int size) {
- String firstLetter = name.substring(0, 1).toUpperCase(Locale.US);
+ String firstLetter = (name.length() > 0) ? name.substring(0, 1).toUpperCase(Locale.US) : " ";
int holoColors[] = { 0xFF1da9da, 0xFFb368d9, 0xFF83b600, 0xFFffa713,
0xFFe92727 };