summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-10-13 16:33:38 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-10-13 16:33:38 -0700
commit4ec6e1e521951a3b3d521a20122ba7100dbd6cc8 (patch)
tree83c9a9fff134f2342c1665c4ea28d5821793ad10 /src
parent1024c1765e892432975510dddc784c1360975247 (diff)
parente659d7b3363a01d238197c65ab032b73c2a0b9d4 (diff)
downloadpackages_apps_Browser-4ec6e1e521951a3b3d521a20122ba7100dbd6cc8.zip
packages_apps_Browser-4ec6e1e521951a3b3d521a20122ba7100dbd6cc8.tar.gz
packages_apps_Browser-4ec6e1e521951a3b3d521a20122ba7100dbd6cc8.tar.bz2
Merge "Expand scope of try/catch" into ics-mr0
Diffstat (limited to 'src')
-rw-r--r--src/com/android/browser/CrashRecoveryHandler.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/com/android/browser/CrashRecoveryHandler.java b/src/com/android/browser/CrashRecoveryHandler.java
index 396985a..3202016 100644
--- a/src/com/android/browser/CrashRecoveryHandler.java
+++ b/src/com/android/browser/CrashRecoveryHandler.java
@@ -200,12 +200,13 @@ public class CrashRecoveryHandler {
parcel.unmarshall(data, 0, data.length);
parcel.setDataPosition(0);
state = parcel.readBundle();
+ if (state != null && !state.isEmpty()) {
+ return state;
+ }
} catch (FileNotFoundException e) {
// No state to recover
- state = null;
} catch (Throwable e) {
Log.w(LOGTAG, "Failed to recover state!", e);
- state = null;
} finally {
parcel.recycle();
if (fin != null) {
@@ -214,9 +215,6 @@ public class CrashRecoveryHandler {
} catch (IOException e) { }
}
}
- if (state != null && !state.isEmpty()) {
- return state;
- }
return null;
}