Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
JSUYA committed Jan 10, 2025
1 parent 96aa439 commit b70d1ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/video_player_avplay/lib/video_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,10 @@ class VideoPlayerController extends ValueNotifier<VideoPlayerValue> {
final DeviceInfoPluginTizen deviceInfoPlugin = DeviceInfoPluginTizen();
final TizenDeviceInfo deviceInfo = await deviceInfoPlugin.tizenInfo;

if (deviceInfo.platformVersion != apiVersion) {
if ((deviceInfo.platformVersion != null &&
deviceInfo.platformVersion!.isNotEmpty) &&
apiVersion != 'none' &&
(deviceInfo.platformVersion != apiVersion)) {
throw Exception(
'The current TizenOS version(${deviceInfo.platformVersion}) '
'and the app API version($apiVersion) are different. '
Expand Down

0 comments on commit b70d1ce

Please sign in to comment.