Skip to content

Commit 1467ffe

Browse files
committed
upd MediaServiceCore
1 parent 160958c commit 1467ffe

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/models/playback/controllers/ChatController.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public void onInit() {
3636

3737
@Override
3838
public void onMetadata(MediaItemMetadata metadata) {
39+
if (getPlayer() == null) {
40+
return;
41+
}
42+
3943
mLiveChatKey = metadata != null ? metadata.getLiveChatKey() : null;
4044

4145
if (mLiveChatKey != null) {
@@ -50,7 +54,7 @@ public void onMetadata(MediaItemMetadata metadata) {
5054
private void openLiveChat() {
5155
disposeActions();
5256

53-
if (mLiveChatKey == null) {
57+
if (mLiveChatKey == null || getPlayer() == null) {
5458
return;
5559
}
5660

0 commit comments

Comments
 (0)