Fix a crash when importing an entry with an existing UUID

Close #11
This commit is contained in:
Alexander Bakker 2018-09-22 14:12:42 +02:00
parent 300fb05c1f
commit ecbbcfee00
5 changed files with 26 additions and 8 deletions

View file

@ -5,6 +5,7 @@ import org.json.JSONException;
import org.json.JSONObject;
import java.util.List;
import java.util.UUID;
import me.impy.aegis.encoding.Base64Exception;
import me.impy.aegis.otp.OtpInfoException;
@ -68,4 +69,8 @@ public class Database {
public List<DatabaseEntry> getEntries() {
return _entries.getList();
}
public DatabaseEntry getEntryByUUID(UUID uuid) {
return _entries.getByUUID(uuid);
}
}