Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 403323c9 authored by cketti's avatar cketti Committed by GitHub
Browse files

Merge pull request #1529 from k9mail/fix-crash-on-no-headers

Don't crash if headers aren't available
parents a47e5bf3 8399c9f1
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -120,7 +120,11 @@ public class LocalMessage extends MimeMessage {
        mimeType = cursor.getString(23);

        byte[] header = cursor.getBlob(25);
        if (header != null) {
            MessageHeaderParser.parse(this, new ByteArrayInputStream(header));
        } else {
            Log.d(K9.LOG_TAG, "No headers available for this message!");
        }
    }

    public long getMessagePartId() {