made roku binding compile again after merge of private branch

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer 2021-01-24 17:20:26 +01:00
parent 4276f5cae0
commit 7df9290b5d

View File

@ -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());
}
}