[infrastructure] add external null-annotations (#8848)

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
J-N-K
2020-10-31 00:29:03 +01:00
committed by GitHub
parent 47d05055db
commit bd664ff0c8
162 changed files with 933 additions and 575 deletions

View File

@@ -265,10 +265,11 @@ public class Parser {
source.setMuted(properties.get("muted").equalsIgnoreCase("yes"));
}
if (properties.containsKey("volume")) {
source.setVolume(Integer.valueOf(parseVolume(properties.get("volume"))));
source.setVolume(parseVolume(properties.get("volume")));
}
if (properties.containsKey("monitor_of")) {
source.setMonitorOf(client.getSink(Integer.valueOf(properties.get("monitor_of"))));
String monitorOf = properties.get("monitor_of");
if (monitorOf != null) {
source.setMonitorOf(client.getSink(Integer.valueOf(monitorOf)));
}
sources.add(source);
}