fix jukebox

This commit is contained in:
_Bastler 2022-01-04 13:54:39 +01:00
parent e07a605427
commit c4a0174c25

View File

@ -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");