From 7df9290b5d1e3753f061ec9a7a619a529f29a0ed Mon Sep 17 00:00:00 2001 From: Kai Kreuzer Date: Sun, 24 Jan 2021 17:20:26 +0100 Subject: [PATCH] made roku binding compile again after merge of private branch Signed-off-by: Kai Kreuzer --- .../roku/internal/communication/RokuCommunicator.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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()); } }