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

Commit 809c3698 authored by Michael Wright's avatar Michael Wright Committed by Android Git Automerger
Browse files

am 54c3529b: Merge "WallpaperManager: add NULL pointer check for getCropAndSetWallpaperIntent"

* commit '54c3529b':
  WallpaperManager: add NULL pointer check for getCropAndSetWallpaperIntent
parents 91ff3c18 54c3529b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -664,6 +664,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");