fix jukebox
This commit is contained in:
parent
e07a605427
commit
c4a0174c25
@ -109,7 +109,7 @@ public class JukeboxController extends BaseController {
|
|||||||
public void check(HttpServletResponse response) throws JsonIOException, IOException {
|
public void check(HttpServletResponse response) throws JsonIOException, IOException {
|
||||||
JsonElement status = checkQueuePermission();
|
JsonElement status = checkQueuePermission();
|
||||||
|
|
||||||
if (status != null) {
|
if (status != null && status.isJsonObject()) {
|
||||||
JsonObject statusObject = status.getAsJsonObject();
|
JsonObject statusObject = status.getAsJsonObject();
|
||||||
if (statusObject.has("item")) {
|
if (statusObject.has("item")) {
|
||||||
response.setContentType("application/json");
|
response.setContentType("application/json");
|
||||||
|
Loading…
Reference in New Issue
Block a user