[Android] FileUtils: catch IllegalStateException

Geoffrey Métais git at videolan.org
Tue Nov 12 11:00:12 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Nov  5 10:09:19 2019 +0100| [6dcdf7170f2bb01405d41da7f860635d99f7e30f] | committer: Geoffrey Métais

FileUtils: catch IllegalStateException

> https://code.videolan.org/videolan/vlc-android/commit/6dcdf7170f2bb01405d41da7f860635d99f7e30f
---

 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 3ed4d3dfc..7e3743e17 100644
--- a/vlc-android/src/org/videolan/vlc/util/FileUtils.kt
+++ b/vlc-android/src/org/videolan/vlc/util/FileUtils.kt
@@ -438,6 +438,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