Fix null pointer exception in player initialization
This commit is contained in:
parent
cf9b482be2
commit
3bc661f583
1 changed files with 1 additions and 0 deletions
|
@ -675,6 +675,7 @@ public final class Player implements
|
||||||
&& isPlaybackResumeEnabled(this)
|
&& isPlaybackResumeEnabled(this)
|
||||||
&& !samePlayQueue
|
&& !samePlayQueue
|
||||||
&& !newQueue.isEmpty()
|
&& !newQueue.isEmpty()
|
||||||
|
&& newQueue.getItem() != null
|
||||||
&& newQueue.getItem().getRecoveryPosition() == PlayQueueItem.RECOVERY_UNSET) {
|
&& newQueue.getItem().getRecoveryPosition() == PlayQueueItem.RECOVERY_UNSET) {
|
||||||
databaseUpdateDisposable.add(recordManager.loadStreamState(newQueue.getItem())
|
databaseUpdateDisposable.add(recordManager.loadStreamState(newQueue.getItem())
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
|
Loading…
Reference in a new issue