]> git.basschouten.com Git - openhab-addons.git/commitdiff
made roku binding compile again after merge of private branch
authorKai Kreuzer <kai@openhab.org>
Sun, 24 Jan 2021 16:20:26 +0000 (17:20 +0100)
committerKai Kreuzer <kai@openhab.org>
Sun, 24 Jan 2021 16:20:26 +0000 (17:20 +0100)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
bundles/org.openhab.binding.roku/src/main/java/org/openhab/binding/roku/internal/communication/RokuCommunicator.java

index 6dfb0a1bfc49c70e388851a566fe127b92945b97..261358b9995571f73f474a1074c97adfc70fba95 100644 (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());
         }
     }