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

Commit 597e9547 authored by cketti's avatar cketti
Browse files

Avoid NullPointerException (reported via Play Store)

parent 9ea46cf0
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -218,6 +218,13 @@ public class AttachmentProvider extends ContentProvider {
            return null;
        }

        if (attachmentInfo == null) {
            if (K9.DEBUG) {
                Log.d(K9.LOG_TAG, "No attachment info for ID: " + id);
            }
            return null;
        }

        MatrixCursor ret = new MatrixCursor(columnNames);
        Object[] values = new Object[columnNames.length];
        for (int i = 0, count = columnNames.length; i < count; i++) {