prevent another cursor leak

// FREEBIE
This commit is contained in:
Jake McGinty 2014-08-20 12:29:40 -07:00
parent 8c55ea09d9
commit 9b495d8c83

View File

@ -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,