mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
Fix NPE in FTS when snippet is null.
This commit is contained in:
parent
3731e2a74a
commit
6bc7f2a5a4
@ -319,9 +319,13 @@ public class ConversationListItem extends RelativeLayout
|
||||
@Nullable String value,
|
||||
@Nullable String highlight)
|
||||
{
|
||||
value = value != null ? value.replaceAll("\n", " ") : null;
|
||||
if (value == null) {
|
||||
return new SpannableString("");
|
||||
}
|
||||
|
||||
if (value == null || highlight == null) {
|
||||
value = value.replaceAll("\n", " ");
|
||||
|
||||
if (highlight == null) {
|
||||
return new SpannableString(value);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user