mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
catch exceptions thrown at fetching zipped files
This commit is contained in:
@ -152,7 +152,11 @@ class DecompressActivity : SimpleActivity() {
|
|||||||
val zipInputStream = ZipInputStream(BufferedInputStream(inputStream))
|
val zipInputStream = ZipInputStream(BufferedInputStream(inputStream))
|
||||||
var zipEntry: ZipEntry?
|
var zipEntry: ZipEntry?
|
||||||
while (true) {
|
while (true) {
|
||||||
zipEntry = zipInputStream.nextEntry
|
try {
|
||||||
|
zipEntry = zipInputStream.nextEntry
|
||||||
|
} catch (ignored: Exception) {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
if (zipEntry == null) {
|
if (zipEntry == null) {
|
||||||
break
|
break
|
||||||
|
Reference in New Issue
Block a user