diff --git a/jukebox/src/main/java/de/bstly/we/jukebox/controller/JukeboxController.java b/jukebox/src/main/java/de/bstly/we/jukebox/controller/JukeboxController.java index 1e410fa..e26a881 100644 --- a/jukebox/src/main/java/de/bstly/we/jukebox/controller/JukeboxController.java +++ b/jukebox/src/main/java/de/bstly/we/jukebox/controller/JukeboxController.java @@ -109,7 +109,7 @@ public class JukeboxController extends BaseController { public void check(HttpServletResponse response) throws JsonIOException, IOException { JsonElement status = checkQueuePermission(); - if (status != null) { + if (status != null && status.isJsonObject()) { JsonObject statusObject = status.getAsJsonObject(); if (statusObject.has("item")) { response.setContentType("application/json");