Skip to content

Commit 947593f

Browse files
committed
Fixed minor NPE
1 parent 7a6c480 commit 947593f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

player/src/main/java/xyz/gianlu/librespot/player/StateWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private boolean isShufflingContext() {
146146
}
147147

148148
void setShufflingContext(boolean value) {
149-
if (context == null) return;
149+
if (context == null || tracksKeeper == null) return;
150150

151151
boolean old = isShufflingContext();
152152
state.getOptionsBuilder().setShufflingContext(value && context.restrictions.can(Action.SHUFFLE));

0 commit comments

Comments
 (0)