libaurum: Fix wrong statement it cause crash 06/290406/1 accepted/tizen/unified/20230327.143735
authorWoochan Lee <wc0917.lee@samsung.com>
Fri, 24 Mar 2023 05:44:25 +0000 (14:44 +0900)
committerWoochan Lee <wc0917.lee@samsung.com>
Fri, 24 Mar 2023 05:45:26 +0000 (14:45 +0900)
Change-Id: I339237cfcd0ff4e03269adb385d1514659b16cb2

libaurum/src/UiDevice.cc

index 169e6ba..a3d66e1 100644 (file)
@@ -209,7 +209,7 @@ std::vector<std::shared_ptr<AccessibleNode>> UiDevice::getWindowRoot() const
         LOGI("Visible win (%d) (%d %d %d %d) (%s)", tWin->getPid(), tWin->getWindowGeometry().mTopLeft.x, tWin->getWindowGeometry().mTopLeft.y, tWin->getWindowGeometry().width(),
             tWin->getWindowGeometry().height(), tWin->getName().c_str());
 
-        if (pidToAppNode.count(tWin->getPid() == 0)) continue;
+        if (pidToAppNode.count(tWin->getPid()) == 0) continue;
 
         LOGI("Active App : (%s) (%d)", tWin->getName().c_str(), tWin->getPid());
         auto wins = pidToAppNode[tWin->getPid()]->getWindows();