mirror of https://github.com/termux/termux-app
Fixed: Fix NullPointerException when getting spanned markdown like for notification
This commit is contained in:
parent
009c128052
commit
09412da9d7
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue