prevent another cursor leak
// FREEBIE
This commit is contained in:
parent
8c55ea09d9
commit
9b495d8c83
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue