1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +01:00
This commit is contained in:
cpfeiffer 2017-03-18 11:41:47 +01:00
parent b2886b81c9
commit f1d07c83f6
2 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public class NotificationUtils {
case CONVERSATIONS: case CONVERSATIONS:
case FACEBOOK: case FACEBOOK:
case FACEBOOK_MESSENGER: case FACEBOOK_MESSENGER:
return notificationSpec.body; return StringUtils.ensureNotNull(notificationSpec.body);
} }
return ""; return "";
} }

View File

@ -20,6 +20,7 @@ import android.support.annotation.NonNull;
public class StringUtils { public class StringUtils {
@NonNull
public static String truncate(String s, int maxLength){ public static String truncate(String s, int maxLength){
if (s == null) { if (s == null) {
return ""; return "";