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

Commit f75c94f7 authored by Daisuke Miyakawa's avatar Daisuke Miyakawa
Browse files

Make vCard composer handle null of Photo entry correctly.

Internal bug id: 2088922
parent ee0e24c1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -967,6 +967,9 @@ public class VCardComposer {
        if (contentValuesList != null) {
            for (ContentValues contentValues : contentValuesList) {
                byte[] data = contentValues.getAsByteArray(Photo.PHOTO);
                if (data == null) {
                    continue;
                }
                final String photoType;
                // Use some heuristics for guessing the format of the image.
                // TODO: there should be some general API for detecting the file format.