From 370056110df018780d0ef2bd4b284ae5f93bc16a Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Tue, 25 Aug 2015 10:22:05 -0700 Subject: Catch exception if bookmark provider cursor allocation fails - The cursor allocation was failing during low memory conditions. The exception was not getting caught resulting in browser crash. CR-Fixed: SWE-5650 Change-Id: Id48c599a3f1d4d32a7720da8a75a61228a66c285 --- src/com/android/browser/provider/BrowserProvider2.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/browser/provider/BrowserProvider2.java b/src/com/android/browser/provider/BrowserProvider2.java index 58aa1a7f..78758442 100644 --- a/src/com/android/browser/provider/BrowserProvider2.java +++ b/src/com/android/browser/provider/BrowserProvider2.java @@ -1857,6 +1857,8 @@ public class BrowserProvider2 extends SQLiteContentProvider { } } } + } catch (Exception e) { + return false; } finally { cursor.close(); } -- cgit v1.2.3