diff options
author | John Spurlock <jspurlock@google.com> | 2015-03-04 23:01:26 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-03-04 23:01:26 +0000 |
commit | b879e7395fa9446952b840b1d576ff225b039774 (patch) | |
tree | 51666f69748c7a982a8624df2ec4f8796bfad754 /packages | |
parent | 3b9e64f3265ad146da1b9f5b523c406acd041f59 (diff) | |
parent | c974ac11f808968648d26e83a0b64a7fba02ad15 (diff) | |
download | frameworks_base-b879e7395fa9446952b840b1d576ff225b039774.zip frameworks_base-b879e7395fa9446952b840b1d576ff225b039774.tar.gz frameworks_base-b879e7395fa9446952b840b1d576ff225b039774.tar.bz2 |
am c974ac11: MediaProjectionPermissionActivity: Fix NPE.
* commit 'c974ac11f808968648d26e83a0b64a7fba02ad15':
MediaProjectionPermissionActivity: Fix NPE.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java b/packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java index 25bab17..c23f45d 100644 --- a/packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java +++ b/packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java @@ -114,7 +114,9 @@ public class MediaProjectionPermissionActivity extends Activity @Override protected void onDestroy() { super.onDestroy(); - mDialog.dismiss(); + if (mDialog != null) { + mDialog.dismiss(); + } } @Override @@ -128,7 +130,9 @@ public class MediaProjectionPermissionActivity extends Activity Log.e(TAG, "Error granting projection permission", e); setResult(RESULT_CANCELED); } finally { - mDialog.dismiss(); + if (mDialog != null) { + mDialog.dismiss(); + } finish(); } } |