From 7322a66cd4d441500dc185686a8b9434361461ce Mon Sep 17 00:00:00 2001 From: Woochanlee Date: Tue, 23 Nov 2021 16:38:51 +0900 Subject: [PATCH] libaurum: Fix Can't find object when combined multiple conditions on efl app Change-Id: I7b73c97a412f11e53547500ba9fa1a371e498e19 --- libaurum/src/PartialMatch.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libaurum/src/PartialMatch.cc b/libaurum/src/PartialMatch.cc index 796c869..1e75b71 100644 --- a/libaurum/src/PartialMatch.cc +++ b/libaurum/src/PartialMatch.cc @@ -54,9 +54,9 @@ bool PartialMatch::checkCriteria(const std::shared_ptr selector, } if (selector->mMatchType || selector->mMatchAutomationId || selector->mMatchStyle) { node->updateAttributes(); - if (checkCriteria(selector->mAutomationId, node->getAutomationId())) return false; - if (checkCriteria(selector->mType, node->getType())) return false; - if (checkCriteria(selector->mStyle, node->getStyle())) return false; + if (selector->mMatchAutomationId && checkCriteria(selector->mAutomationId, node->getAutomationId())) return false; + if (selector->mMatchType && checkCriteria(selector->mType, node->getType())) return false; + if (selector->mMatchStyle && checkCriteria(selector->mStyle, node->getStyle())) return false; } if (selector->mMatchPkg) { node->updateApplication(); -- 2.34.1