init db before using it

This commit is contained in:
Eric House 2012-02-07 07:06:25 -08:00
parent bde5910c2a
commit aca4e1fed8

View file

@ -437,6 +437,7 @@ public class DBUtils {
String selection = DBHelper.GAMEID + "!=0";
HashMap<String, HashSet<Integer> > map =
new HashMap<String, HashSet<Integer> >();
initDB( context );
synchronized( s_dbHelper ) {
SQLiteDatabase db = s_dbHelper.getReadableDatabase();
Cursor cursor = db.query( DBHelper.TABLE_NAME_SUM, columns,