[Android] Catch IllegalArgumentException on file opening

Geoffrey Métais git at videolan.org
Tue Feb 6 13:37:32 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb  6 13:19:38 2018 +0100| [e044845068c52755eb8ea005d9184608f03f5f7c] | committer: Geoffrey Métais

Catch IllegalArgumentException on file opening

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

 vlc-android/src/org/videolan/vlc/util/FileUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/util/FileUtils.java b/vlc-android/src/org/videolan/vlc/util/FileUtils.java
index 89902bfcd..1342d1d4f 100644
--- a/vlc-android/src/org/videolan/vlc/util/FileUtils.java
+++ b/vlc-android/src/org/videolan/vlc/util/FileUtils.java
@@ -405,7 +405,7 @@ public class FileUtils {
 //                        }
 //                        returnCursor.close();
 //                    }
-                } catch (FileNotFoundException e) {
+                } catch (FileNotFoundException|IllegalArgumentException e) {
                     Log.e(TAG, "Couldn't understand the intent");
                     return data;
                 } catch (SecurityException e) {



More information about the Android mailing list