mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -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