Skip to content
Snippets Groups Projects
Commit 855392c8 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski Committed by GitHub
Browse files

Changed IrcFormatSerializer to fix bug #16224

SpannableString is initialized with the output of IrcFormatDeserializer::formatString. As SpannableString does not allow null inputs, we have to adapt this.
parent 3ef0eca8
No related branches found
No related tags found
No related merge requests found
...@@ -110,9 +110,9 @@ public class IrcFormatDeserializer { ...@@ -110,9 +110,9 @@ public class IrcFormatDeserializer {
* @param str mIRC formatted String * @param str mIRC formatted String
* @return a CharSequence with Android’s span format representing the input string * @return a CharSequence with Android’s span format representing the input string
*/ */
@Nullable @NonNUll
public CharSequence formatString(@Nullable String str) { public CharSequence formatString(@Nullable String str) {
if (str == null) return null; if (str == null) return "";
SpannableStringBuilder plainText = new SpannableStringBuilder(); SpannableStringBuilder plainText = new SpannableStringBuilder();
FormatDescription bold = null; FormatDescription bold = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment