Merge pull request #6570 from Redirion/fixnpe

Fix NPE when connecting via BT
This commit is contained in:
Tobi 2021-07-03 11:18:02 +02:00 committed by GitHub
commit 83b198f6fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -2160,7 +2160,10 @@ public final class Player implements
private void onCompleted() {
if (DEBUG) {
Log.d(TAG, "onCompleted() called");
Log.d(TAG, "onCompleted() called" + (playQueue == null ? ". playQueue is null" : ""));
}
if (playQueue == null) {
return;
}
animate(binding.playPauseButton, false, 0, AnimationType.SCALE_AND_ALPHA, 0,