diff --git a/lib/pages/danmaku/view.dart b/lib/pages/danmaku/view.dart index 7c60041a7..2bd5931a8 100644 --- a/lib/pages/danmaku/view.dart +++ b/lib/pages/danmaku/view.dart @@ -95,7 +95,7 @@ class _PlDanmakuState extends State { List? currentDanmakuList = _plDanmakuController.getCurrentDanmaku(currentPosition); - if (currentDanmakuList != null) { + if (currentDanmakuList != null && _controller != null) { Color? defaultColor = playerController.blockTypes.contains(6) ? DmUtils.decimalToColor(16777215) : null;