mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
made roku binding compile again after merge of private branch
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
parent
4276f5cae0
commit
7df9290b5d
@ -124,15 +124,14 @@ public class RokuCommunicator {
|
|||||||
if (unmarshaller != null) {
|
if (unmarshaller != null) {
|
||||||
XMLStreamReader xsr = JAXBUtils.XMLINPUTFACTORY
|
XMLStreamReader xsr = JAXBUtils.XMLINPUTFACTORY
|
||||||
.createXMLStreamReader(new StringReader(getCommand(urlQryActiveApp)));
|
.createXMLStreamReader(new StringReader(getCommand(urlQryActiveApp)));
|
||||||
ActiveApp activeApp = (ActiveApp) unmarshaller
|
ActiveApp activeApp = (ActiveApp) unmarshaller.unmarshal(xsr);
|
||||||
.unmarshal(xsr));
|
|
||||||
if (activeApp != null) {
|
if (activeApp != null) {
|
||||||
return activeApp;
|
return activeApp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw new RokuHttpException("No ActiveApp model in response");
|
throw new RokuHttpException("No ActiveApp model in response");
|
||||||
} catch (JAXBException e) {
|
} catch (JAXBException | XMLStreamException e) {
|
||||||
throw new RokuHttpException("Exception creating ActiveApp Unmarshaller: " + e.getLocalizedMessage());
|
throw new RokuHttpException("Exception creating ActiveApp Unmarshaller: " + e.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user