summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-02-22 14:55:07 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-02-22 14:55:07 -0800
commit667271dd37665a8d6d1ee430c8f2680d0f1d9c8d (patch)
treed471ceeaf71dcd81c704f8c095fde9e6868c284c /src/com/android
parent991bb5f8ae763265ba9ed57b0c785ecf23868d44 (diff)
parent38b4bf5f9cbb6adf2c5ca353e3b0c2a4ae9eeb87 (diff)
downloadpackages_apps_Browser-667271dd37665a8d6d1ee430c8f2680d0f1d9c8d.zip
packages_apps_Browser-667271dd37665a8d6d1ee430c8f2680d0f1d9c8d.tar.gz
packages_apps_Browser-667271dd37665a8d6d1ee430c8f2680d0f1d9c8d.tar.bz2
Merge "Fix NPE in onDestroy"
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/browser/Controller.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index 062814b..0961f80 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -678,7 +678,7 @@ public class Controller
}
void onDestroy() {
- if (!mUploadHandler.handled()) {
+ if (mUploadHandler != null && !mUploadHandler.handled()) {
mUploadHandler.onResult(Activity.RESULT_CANCELED, null);
mUploadHandler = null;
}