mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
close db cursor after reading cert
This commit is contained in:
parent
5017e8564c
commit
74d376be68
@ -1135,6 +1135,7 @@ public class DatabaseBackend extends SQLiteOpenHelper {
|
||||
} else {
|
||||
cursor.moveToFirst();
|
||||
byte[] certificate = cursor.getBlob(cursor.getColumnIndex(SQLiteAxolotlStore.CERTIFICATE));
|
||||
cursor.close();
|
||||
if (certificate == null || certificate.length == 0) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user