[Android] FileUtils: catch IllegalStateException
Geoffrey Métais
git at videolan.org
Wed Nov 13 10:29:19 CET 2019
vlc-android | branch: 3.2.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Nov 5 10:09:19 2019 +0100| [61a18a93c7435527b22453211cebf5b7f8d68d9f] | committer: Geoffrey Métais
FileUtils: catch IllegalStateException
(cherry picked from commit 6dcdf7170f2bb01405d41da7f860635d99f7e30f)
> https://code.videolan.org/videolan/vlc-android/commit/61a18a93c7435527b22453211cebf5b7f8d68d9f
---
vlc-android/src/org/videolan/vlc/util/FileUtils.kt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/util/FileUtils.kt b/vlc-android/src/org/videolan/vlc/util/FileUtils.kt
index 2d6e52233..c6be5b09e 100644
--- a/vlc-android/src/org/videolan/vlc/util/FileUtils.kt
+++ b/vlc-android/src/org/videolan/vlc/util/FileUtils.kt
@@ -443,6 +443,9 @@ object FileUtils {
} catch (e: IllegalArgumentException) {
Log.e(TAG, "Couldn't understand the intent")
return null
+ } catch (e: IllegalStateException) {
+ Log.e(TAG, "Couldn't understand the intent")
+ return null
} catch (e: NullPointerException) {
Log.e(TAG, "Couldn't understand the intent")
return null
More information about the Android
mailing list