diff options
author | Jeff Sharkey <jsharkey@android.com> | 2012-05-23 16:33:44 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2012-05-23 16:33:44 -0700 |
commit | cd7ff382597a4242be6dc3cac1ba2dced84c5eba (patch) | |
tree | f6c2dd4ab3337894a9afdb975332d8bb3917bc60 /src/com/android/packageinstaller | |
parent | 40ad9cdfc250a6c7aae476f5cb77084b9e75e9f2 (diff) | |
download | packages_apps_packageinstaller-cd7ff382597a4242be6dc3cac1ba2dced84c5eba.zip packages_apps_packageinstaller-cd7ff382597a4242be6dc3cac1ba2dced84c5eba.tar.gz packages_apps_packageinstaller-cd7ff382597a4242be6dc3cac1ba2dced84c5eba.tar.bz2 |
Reduce strict Uri checking.
Bug: 6539616
Change-Id: I60cbf1c49ffd565504504ef4b67fe5a512c086e4
Diffstat (limited to 'src/com/android/packageinstaller')
-rw-r--r-- | src/com/android/packageinstaller/PackageInstallerActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/packageinstaller/PackageInstallerActivity.java b/src/com/android/packageinstaller/PackageInstallerActivity.java index da0df53..2fcc34a 100644 --- a/src/com/android/packageinstaller/PackageInstallerActivity.java +++ b/src/com/android/packageinstaller/PackageInstallerActivity.java @@ -420,7 +420,7 @@ public class PackageInstallerActivity extends Activity implements OnCancelListen mPm = getPackageManager(); final String scheme = mPackageURI.getScheme(); - if (!"file".equals(scheme)) { + if (scheme != null && !"file".equals(scheme)) { throw new IllegalArgumentException("unexpected scheme " + scheme); } |