From 19946d72332fce2a63e2d0c3a67ad6473eef9fea Mon Sep 17 00:00:00 2001 From: Pawel Kurowski Date: Wed, 3 Jan 2018 18:50:44 +0100 Subject: [PATCH] [FIX] increment & decrement value of UIElement Due to change of lambda signature from std::shared_ptr to DBus::ValueOrError> addintional Null check is requiered. Change-Id: I5864f61740ef9ce2e255d114953aa7f20bf2f4d3 --- src/UIElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UIElement.cpp b/src/UIElement.cpp index def19e5..1fc1760 100644 --- a/src/UIElement.cpp +++ b/src/UIElement.cpp @@ -190,7 +190,7 @@ namespace atspi->getObjectInRelation(obj, ATSPI_RELATION_CONTROLLER_FOR, [atspi, obj, setCurrentValue](DBus::ValueOrError> objInRelation) { - if (!objInRelation) + if (!objInRelation || !std::get<0>(objInRelation)) objInRelation = obj; atspi->getValueInterface(std::get<0>(objInRelation), -- 2.7.4