master
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 FACEBOOK:
case FACEBOOK_MESSENGER:
return notificationSpec.body;
return StringUtils.ensureNotNull(notificationSpec.body);
}
return "";
}

View File

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