-
Notifications
You must be signed in to change notification settings - Fork 9.8k
video_player: Fixed null exception when file has no width or height. #813
Conversation
Please accept this PR. I have the same problem. |
Any update on this? |
It will be nice to have this fix merged |
It's been more than a week now. Can we have an ETA on when this can be merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! The change looks good to me.
Can you please add an entry to the Changelog and increase the version number in the pubspec.yaml so we can release a version with this bugfix?
Can you also add a test to ensure that this does not regress in the future? Thanks!
3f4aa11
to
c93292a
Compare
@goderbauer Thank you for the review! I updated the changelog and the pubspec.yaml. I had a look at the test file and from what I understand the MethodChannel is not tested at all at the moment. This mean I would have to write a complete set of test (for everything). This should be a separate PR I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sadly, I am not in the list of uploaders for this plugin on pub. I've pinged @cbracken, @gspencergoog, and @bkonyi to re-publish it to pub. |
Thanks! |
This has been published now. Version 0.7.1 is live. |
@quentinleguennec - I think in this case it might still be nice to have a test where those values are passed in as null, which would fail before this patch but not fail now. We should be able to achieve that by moving the |
@dnfield I think there should be more tests on this plugin since it's very popular. But you are right, we need to start somewhere and that could be a good start :) |
…lutter#813) Since the audio player plugin is not maintained we use the video player to play some mp3 files. It's working fine in iOS but crashing on Android because of a null exception. This fixes it.
…height. (flutter#813)" This reverts commit 457f3b4.
Since the audio player plugin is not maintained we use the video player to play some mp3 files. It's working fine in iOS but crashing on Android because of a null exception. This fixes it.