mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-25 19:41:34 -08:00
Fix small warning
This commit is contained in:
1 parent
f45d9ce6da
commit
bdafae6132
1 file changed
+4
-1
@@ -338,7 +338,10 @@ class Database {
|
||||
}
|
||||
|
||||
// Load Data, pass Uris as InputStreams
|
||||
databaseInputStream = BufferedInputStream(UriUtil.getUriInputStream(contentResolver, uri))
|
||||
val databaseStream = UriUtil.getUriInputStream(contentResolver, uri)
|
||||
?: throw IOException("Database input stream cannot be retrieve")
|
||||
|
||||
databaseInputStream = BufferedInputStream(databaseStream)
|
||||
if (!databaseInputStream.markSupported()) {
|
||||
throw IOException("Input stream does not support mark.")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user