diff options
author | Suchi Amalapurapu <asuchitra@google.com> | 2009-07-01 16:59:08 -0700 |
---|---|---|
committer | Suchi Amalapurapu <asuchitra@google.com> | 2009-07-01 16:59:08 -0700 |
commit | 6b77c4b804c07e7c01c5842df357200a7d927327 (patch) | |
tree | 39be5eb5f62f73015b1cb25f624b69f9c0694404 /src/com/android/packageinstaller/PackageInstallerActivity.java | |
parent | 3d8cab3e3e7884d628a4b799a93155c6efcab95a (diff) | |
download | packages_apps_packageinstaller-6b77c4b804c07e7c01c5842df357200a7d927327.zip packages_apps_packageinstaller-6b77c4b804c07e7c01c5842df357200a7d927327.tar.gz packages_apps_packageinstaller-6b77c4b804c07e7c01c5842df357200a7d927327.tar.bz2 |
Null check for application info
Diffstat (limited to 'src/com/android/packageinstaller/PackageInstallerActivity.java')
-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 a02b3cb..9b487d1 100644 --- a/src/com/android/packageinstaller/PackageInstallerActivity.java +++ b/src/com/android/packageinstaller/PackageInstallerActivity.java @@ -155,7 +155,7 @@ public class PackageInstallerActivity extends Activity implements OnCancelListen case DLG_REPLACE_APP: int msgId = R.string.dlg_app_replacement_statement; // Customized text for system apps - if ((mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { + if ((mAppInfo != null) && (mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { msgId = R.string.dlg_sys_app_replacement_statement; } return new AlertDialog.Builder(this) |