mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 05:37:07 +00:00
Prevent crash
This commit is contained in:
parent
558eec538f
commit
223924dc81
1 changed files with 2 additions and 0 deletions
|
@ -240,6 +240,8 @@ public class HtmlHelper {
|
|||
|
||||
static String getQuote(Context context, long id, boolean sanitize) throws IOException {
|
||||
EntityMessage message = DB.getInstance(context).message().getMessage(id);
|
||||
if (message == null)
|
||||
return null;
|
||||
String html = EntityMessage.read(context, id);
|
||||
return String.format("<p>%s %s:</p>\n<blockquote>%s</blockquote>",
|
||||
Html.escapeHtml(new Date(message.received).toString()),
|
||||
|
|
Loading…
Reference in a new issue