diff --git a/lib/pages/video/detail/controller.dart b/lib/pages/video/detail/controller.dart index 012fe45b..01bca7fe 100644 --- a/lib/pages/video/detail/controller.dart +++ b/lib/pages/video/detail/controller.dart @@ -1070,7 +1070,7 @@ class VideoDetailController extends GetxController if (data.dash == null && data.durl != null) { videoUrl = data.durl!.first.url!; audioUrl = ''; - if (Get.arguments['progress'] != null) { + if (Get.arguments?['progress'] != null) { this.defaultST = Duration(milliseconds: Get.arguments['progress']); Get.arguments['progress'] = null; } else { @@ -1193,7 +1193,7 @@ class VideoDetailController extends GetxController audioUrl = ''; } // - if (Get.arguments['progress'] != null) { + if (Get.arguments?['progress'] != null) { this.defaultST = Duration(milliseconds: Get.arguments['progress']); Get.arguments['progress'] = null; } else {