[Android] Media utils: catch IllegalStateException

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


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

Media utils: catch IllegalStateException

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

 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