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

Commit 14149db1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Media process is crashing with NullPointer exception"

parents 4375dc3b 8f6925e9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -684,6 +684,11 @@ public final class MediaStore {
                            return null;
                        }
                        filePath = c.getString(1);
                        // this DB query can return null under some synchronization issue,
                        // returning NULL bitmap in such cases.
                        if (filePath == null) {
                            return null;
                        }
                    }
                    if (isVideo) {
                        bitmap = ThumbnailUtils.createVideoThumbnail(filePath, kind);