From d488729d0cbaf8111a4fb76948fd28b150e6b0af Mon Sep 17 00:00:00 2001 From: Vivek Sekhar Date: Fri, 31 Jul 2015 16:52:00 -0700 Subject: Catch generice exception in UpdateNotificationService Change-Id: I09e02c1d99cf35989bb1d6fd2d30e759e305f27b --- src/com/android/browser/UpdateNotificationService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/com/android/browser/UpdateNotificationService.java b/src/com/android/browser/UpdateNotificationService.java index dc913158..49cf324f 100644 --- a/src/com/android/browser/UpdateNotificationService.java +++ b/src/com/android/browser/UpdateNotificationService.java @@ -225,10 +225,8 @@ public class UpdateNotificationService extends IntentService { showNotification(this, url, version); } stream.close(); - } catch (JSONException e) { - Log.e(LOGTAG, "handleUpdateCheck JSONException : " + e.toString()); - } catch (IOException e) { - Log.e(LOGTAG, "handleUpdateCheck IOException : " + e.toString()); + } catch (Exception e) { + Log.e(LOGTAG, "handleUpdateCheck Exception : " + e.toString()); } finally { // always update the timestamp updateTimeStamp(); -- cgit v1.2.3