From fdb0f01b38821003bd6e9f145adc3d5181f75386 Mon Sep 17 00:00:00 2001 From: Stypox Date: Thu, 28 Jan 2021 14:35:47 +0100 Subject: [PATCH] Add Objects.requireNotNull to warning which is surely not null --- .../java/org/schabi/newpipe/player/helper/PlayerHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java b/app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java index f56909844..ccc73e81f 100644 --- a/app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java +++ b/app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java @@ -426,7 +426,7 @@ public final class PlayerHelper { private static SinglePlayQueue getAutoQueuedSinglePlayQueue( final StreamInfoItem streamInfoItem) { final SinglePlayQueue singlePlayQueue = new SinglePlayQueue(streamInfoItem); - singlePlayQueue.getItem().setAutoQueued(true); + Objects.requireNonNull(singlePlayQueue.getItem()).setAutoQueued(true); return singlePlayQueue; }