[Android] Media utils: catch IllegalStateException

Geoffrey Métais git at videolan.org
Mon Apr 1 11:36:26 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Apr  1 11:26:57 2019 +0200| [62c728059da2e0120d9537d22669894c828ee925] | committer: Geoffrey Métais

Media utils: catch IllegalStateException

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

 vlc-android/src/org/videolan/vlc/media/MediaUtils.kt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt b/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
index 7793509fe..185d47e4a 100644
--- a/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
+++ b/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
@@ -414,6 +414,7 @@ object MediaUtils : CoroutineScope {
     } catch (ignored: UnsupportedOperationException) {
     } catch (ignored: IllegalArgumentException) {
     } catch (ignored: NullPointerException) {
+    } catch (ignored: IllegalStateException) {
     } catch (ignored: SecurityException) {}
 
     fun deletePlaylist(playlist: Playlist) = launch(Dispatchers.IO) { playlist.delete() }



More information about the Android mailing list