Hexer10 / youtube_explode_dart

Dart library to interact with many Youtube APIs
https://pub.dev/packages/youtube_explode_dart
BSD 3-Clause "New" or "Revised" License
326 stars 143 forks source link

Null check operator used on a null value #192

Closed pesutsoos closed 2 years ago

pesutsoos commented 2 years ago

Hi there,

explode.channels.getAboutPageByUsername("HooverphonicMusic"); The code above throws an error:

I/flutter (11002): #0 _InitialData.description (package:youtube_explode_dart/src/reverse_engineering/pages/channel_about_page.dart:89:33) I/flutter (11002): #1 _InitialData.description (package:youtube_explode_dart/src/reverse_engineering/pages/channel_about_page.dart) I/flutter (11002): #2 ChannelAboutPage.description (package:youtube_explode_dart/src/reverse_engineering/pages/channel_about_page.dart:14:41) I/flutter (11002): #3 ChannelClient.getAboutPageByUsername (package:youtube_explode_dart/src/channels/channel_client.dart:79:14)

Seems like the crash happens for channels without a details section on the about page.

prateekmedia commented 2 years ago

Same if the channel doesn't have a country.

Hexer10 commented 2 years ago

This is fixed v1.10.10 those properties are now nullable