diff options
-rw-r--r-- | src/com/android/browser/CrashRecoveryHandler.java | 8 |
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; } |