Fixed: Fix NullPointerException when getting spanned markdown like for notification

This commit is contained in:
agnostic-apollo 2021-10-08 22:31:26 +05:00
parent 009c128052
commit 09412da9d7
1 changed files with 1 additions and 2 deletions

View File

@ -191,9 +191,8 @@ public class MarkdownUtils {
}
public static Spanned getSpannedMarkdownText(Context context, String string) {
if (context == null || string == null) return null;
final Markwon markwon = getSpannedMarkwonBuilder(context);
return markwon.toMarkdown(string);
}