diff --git a/lib/pages/video/detail/view.dart b/lib/pages/video/detail/view.dart index fe30760f7..2c6a491e1 100644 --- a/lib/pages/video/detail/view.dart +++ b/lib/pages/video/detail/view.dart @@ -102,10 +102,12 @@ class _VideoDetailPageState extends State }); videoDetailController.cid.listen((p0) { if (!context.mounted) return; - videoPlayerServiceHandler.onVideoDetailChange( - (bangumiIntroController.loadingState.value as Success).response, - p0, - ); + if (bangumiIntroController.loadingState.value is Success) { + videoPlayerServiceHandler.onVideoDetailChange( + (bangumiIntroController.loadingState.value as Success).response, + p0, + ); + } }); autoExitFullscreen = setting.get(SettingBoxKey.enableAutoExit, defaultValue: true);