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

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

Merge "Check the unsupported type's uri to avoid NullPointerException"

parents c55905c7 b4e2c150
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1182,7 +1182,8 @@ public class PduPersister {
            for (int i = 0; i < partsNum; i++) {
                PduPart part = body.getPart(i);
                Uri partUri = part.getDataUri();
                if ((partUri == null) || !partUri.getAuthority().startsWith("mms")) {
                if ((partUri == null) || TextUtils.isEmpty(partUri.getAuthority())
                        || !partUri.getAuthority().startsWith("mms")) {
                    toBeCreated.add(part);
                } else {
                    toBeUpdated.put(partUri, part);