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

Commit 54c3529b authored by Michael Wright's avatar Michael Wright Committed by Gerrit Code Review
Browse files

Merge "WallpaperManager: add NULL pointer check for getCropAndSetWallpaperIntent"

parents 7d3f9e97 1c0f21ea
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -668,6 +668,10 @@ public class WallpaperManager {
     *         not "image/*"
     */
    public Intent getCropAndSetWallpaperIntent(Uri imageUri) {
        if (imageUri == null) {
            throw new IllegalArgumentException("Image URI must not be null");
        }

        if (!ContentResolver.SCHEME_CONTENT.equals(imageUri.getScheme())) {
            throw new IllegalArgumentException("Image URI must be of the "
                    + ContentResolver.SCHEME_CONTENT + " scheme type");