Fix a possible stacktrace on RandomPlayQueue

master
jvoisin 6 years ago
parent a3e59e9724
commit d2f40b710b
  1. 6
      airsonic-main/src/main/java/org/airsonic/player/controller/RandomPlayQueueController.java

@ -62,7 +62,7 @@ public class RandomPlayQueueController {
ModelMap model,
HttpServletRequest request,
HttpServletResponse response,
@RequestParam(value = "size") int size,
@RequestParam(value = "size") Integer size,
@RequestParam(value = "genre", required = false) String genre,
@RequestParam(value = "year", required = false) String year,
@RequestParam(value = "songRating", required = false) String songRating,
@ -87,6 +87,10 @@ public class RandomPlayQueueController {
boolean doesShowStarredSongs = false;
boolean doesShowUnstarredSongs = false;
if (size == null) {
size = 24;
}
// Handle the genre filter
if (StringUtils.equalsIgnoreCase("any", genre)) {
genre = null;

Loading…
Cancel
Save