From a866116dd642a3f1c035d4306a475f093a940040 Mon Sep 17 00:00:00 2001 From: Karel Goderis Date: Sat, 7 Feb 2015 16:44:52 +0100 Subject: [PATCH] Fix bug in updateCurrentURIFormatted() Signed-off-by: Karel Goderis --- .../org/openhab/binding/sonos/handler/ZonePlayerHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/binding/org.openhab.binding.sonos/src/main/java/org/openhab/binding/sonos/handler/ZonePlayerHandler.java b/addons/binding/org.openhab.binding.sonos/src/main/java/org/openhab/binding/sonos/handler/ZonePlayerHandler.java index 843d7ee66572f..708f305f9f2a0 100644 --- a/addons/binding/org.openhab.binding.sonos/src/main/java/org/openhab/binding/sonos/handler/ZonePlayerHandler.java +++ b/addons/binding/org.openhab.binding.sonos/src/main/java/org/openhab/binding/sonos/handler/ZonePlayerHandler.java @@ -643,7 +643,7 @@ protected void updateCurrentURIFormatted() { List fields = SonosXMLParser .getRadioTimeFromXML(response); - if (fields != null) { + if (fields != null && fields.size() > 0) { resultString = new String(); // radio name should be first field