Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a8bc78d authored by Vasu Nori's avatar Vasu Nori
Browse files

weird java bug. bug:2941509

Change-Id: I70edabbdb5c715018227958b74fa1ac4e4df3f88
parent d6284799
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2392,10 +2392,9 @@ public class SQLiteDatabase extends SQLiteClosable {
        ArrayList<DbStats> dbStatsList = new ArrayList<DbStats>();
        // make a local copy of mActiveDatabases - so that this method is not competing
        // for synchronization lock on mActiveDatabases
        ArrayList<WeakReference<SQLiteDatabase>> tempList =
                new ArrayList<WeakReference<SQLiteDatabase>>();
        ArrayList<WeakReference<SQLiteDatabase>> tempList;
        synchronized(mActiveDatabases) {
            Collections.copy(tempList, mActiveDatabases);
            tempList = (ArrayList<WeakReference<SQLiteDatabase>>)mActiveDatabases.clone();
        }
        for (WeakReference<SQLiteDatabase> w : tempList) {
            SQLiteDatabase db = w.get();