App crashes if YT url is a link to the channel. Before extracting ID and opening player, app must check if given URL is a video url.
Crash stack trace:
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Caused by: java.lang.NullPointerException: Video ID must not be null
at io.github.feelfreelinux.wykopmobilny.ui.modules.embedview.YTPlayer.initialize(YTPlayer.kt:147)
at io.github.feelfreelinux.wykopmobilny.ui.modules.embedview.YTPlayer.onCreate(YTPlayer.kt:119)
App crashes if YT url is a link to the channel. Before extracting ID and opening player, app must check if given URL is a video url.
Crash stack trace:
Video with test