fix: 参数未判空

This commit is contained in:
orz12
2024-04-04 11:02:34 +08:00
parent 466e96e6ec
commit 6f3124b60a

View File

@@ -101,8 +101,8 @@ class VideoPlayerServiceHandler extends BaseAudioHandler with SeekHandler {
if (!enableBackgroundPlay) return;
if (data == null) return;
Map argMap = Get.arguments;
final heroTag = argMap['heroTag'];
if (Get.arguments == null) return;
final heroTag = Get.arguments['heroTag'];
late MediaItem? mediaItem;
if (data is VideoDetailData) {