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 a new issue