Skip to content

Commit

Permalink
fix: 切换pip导致弹幕控制器空异常
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Feb 23, 2024
1 parent 7dfbc62 commit 823f49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pages/danmaku/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class _PlDanmakuState extends State<PlDanmaku> {
List<DanmakuElem>? currentDanmakuList =
_plDanmakuController.getCurrentDanmaku(currentPosition);

if (currentDanmakuList != null) {
if (currentDanmakuList != null && _controller != null) {
Color? defaultColor = playerController.blockTypes.contains(6)
? DmUtils.decimalToColor(16777215)
: null;
Expand Down

0 comments on commit 823f49c

Please sign in to comment.