- if (loadAllSones) {
- sones.addAll(webInterface.getCore().getSones());
- } else {
- String loadSoneIds = request.getHttpRequest().getParam("soneIds");
- if (loadSoneIds.length() > 0) {
- String[] soneIds = loadSoneIds.split(",");
- for (String soneId : soneIds) {
- /* just add it, we skip null further down. */
- sones.add(webInterface.getCore().getSone(soneId, false));
- }
+ String loadSoneIds = request.getHttpRequest().getParam("soneIds");
+ if (loadSoneIds.length() > 0) {
+ String[] soneIds = loadSoneIds.split(",");
+ for (String soneId : soneIds) {
+ /* just add it, we skip null further down. */
+ sones.add(webInterface.getCore().getSone(soneId).orNull());