diff options
-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); } |