]> git.basschouten.com Git - openhab-addons.git/commitdiff
Ignore invalid elapsed/total time values (#15900)
authormlobstein <michael.lobstein@gmail.com>
Fri, 17 Nov 2023 17:51:26 +0000 (11:51 -0600)
committerGitHub <noreply@github.com>
Fri, 17 Nov 2023 17:51:26 +0000 (18:51 +0100)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
bundles/org.openhab.binding.roku/src/main/java/org/openhab/binding/roku/internal/handler/RokuHandler.java

index bb886851704ccef7f1c4e72c12a9717d76f2e10b..ea9067a272a1a2df1305ac4500ba562ece908dec 100644 (file)
@@ -205,6 +205,8 @@ public class RokuHandler extends BaseThingHandler {
                     } else {
                         updateState(TIME_TOTAL, UnDefType.UNDEF);
                     }
+                } catch (NumberFormatException e) {
+                    logger.debug("Unable to parse playerInfo integer value. Exception: {}", e.getMessage());
                 } catch (RokuHttpException e) {
                     logger.debug("Unable to retrieve Roku media-player info. Exception: {}", e.getMessage(), e);
                     updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR);