diff --git a/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/ContentPlayerViewController.scala b/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/ContentPlayerViewController.scala index 7352e03f12819cf1a498ffcf6f7d8468a9e13cd8..42844bf2b91f6c6130ab081afe3cad271bcfe6c3 100644 --- a/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/ContentPlayerViewController.scala +++ b/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/ContentPlayerViewController.scala @@ -49,7 +49,13 @@ class ContentPlayerViewController extends NVC { if (!getChildren.contains(mediaView)) { val index = activePlayers.indexOf(padIndex) - getChildren.add(index, mediaView) + try { + getChildren.add(index, mediaView) + } catch { + case e: Exception => + Logger.error(e) + getChildren.add(mediaView) + } } }