diff --git a/bundles/org.openhab.binding.roku/src/main/java/org/openhab/binding/roku/internal/communication/RokuCommunicator.java b/bundles/org.openhab.binding.roku/src/main/java/org/openhab/binding/roku/internal/communication/RokuCommunicator.java index 6dfb0a1bfc4..261358b9995 100644 --- a/bundles/org.openhab.binding.roku/src/main/java/org/openhab/binding/roku/internal/communication/RokuCommunicator.java +++ b/bundles/org.openhab.binding.roku/src/main/java/org/openhab/binding/roku/internal/communication/RokuCommunicator.java @@ -124,15 +124,14 @@ public class RokuCommunicator { if (unmarshaller != null) { XMLStreamReader xsr = JAXBUtils.XMLINPUTFACTORY .createXMLStreamReader(new StringReader(getCommand(urlQryActiveApp))); - ActiveApp activeApp = (ActiveApp) unmarshaller - .unmarshal(xsr)); + ActiveApp activeApp = (ActiveApp) unmarshaller.unmarshal(xsr); if (activeApp != null) { return activeApp; } } } throw new RokuHttpException("No ActiveApp model in response"); - } catch (JAXBException e) { + } catch (JAXBException | XMLStreamException e) { throw new RokuHttpException("Exception creating ActiveApp Unmarshaller: " + e.getLocalizedMessage()); } }