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 (!enableBackgroundPlay) return;
if (data == null) return; if (data == null) return;
Map argMap = Get.arguments; if (Get.arguments == null) return;
final heroTag = argMap['heroTag']; final heroTag = Get.arguments['heroTag'];
late MediaItem? mediaItem; late MediaItem? mediaItem;
if (data is VideoDetailData) { if (data is VideoDetailData) {