some coding practice and potential bug fixes

This commit is contained in:
Thialfihar
2010-05-27 20:27:21 +00:00
parent 570b7a6d8e
commit b42f02ba92
4 changed files with 40 additions and 9 deletions

View File

@@ -1017,7 +1017,10 @@ public class Apg {
keyIds.add(c.getInt(0));
} while (c.moveToNext());
}
c.close();
if (c != null) {
c.close();
}
return keyIds;
}