mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
prevent another cursor leak
// FREEBIE
This commit is contained in:
parent
8c55ea09d9
commit
9b495d8c83
@ -108,6 +108,7 @@ public class ApnDatabase {
|
||||
}
|
||||
|
||||
if (cursor == null || !cursor.moveToFirst()) {
|
||||
if (cursor != null) cursor.close();
|
||||
Log.w(TAG, "Querying table for MCC+MNC " + mccmnc + " without APN name");
|
||||
cursor = db.query(TABLE_NAME, null,
|
||||
BASE_SELECTION,
|
||||
|
Loading…
x
Reference in New Issue
Block a user