-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Article - Fix a crash when attempting to load a video with an invalid URL #725
Conversation
…r throw an error if src is not a valid url
…ideoComponent initializer
a72a9e4
to
e06aa47
Compare
@@ -1,4 +1,6 @@ | |||
import Foundation |
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.
do we need Foundation
here?
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.
Yes (URL
)
Actually, good catch! It's a leftover 😄
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.
looks great! I am able to see the article and the app doesn't crash with this change. thanks! will give it another look when ready to review
Sync: Coverage: 84.56
Generated by 🚫 Danger Swift against e06aa47 |
Summary
VideoComponent
instance with an invalid urlReferences
Implementation Details
VideoComponent
, make the convenience initializer throw an error if the url fromVideoParts
is invalidArticleComponent
, handle the errors described in the previous bulletTest Steps
PR Checklist:
Screenshots