bootstrap: fix crash when element id is invalid 75/277075/1
authorHosang Kim <hosang12.kim@samsung.com>
Thu, 30 Jun 2022 06:45:55 +0000 (15:45 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Thu, 30 Jun 2022 06:46:32 +0000 (15:46 +0900)
Change-Id: Ie39e166be8ee5fa2ae770d655a2337fc55737494

org.tizen.aurum-bootstrap/src/ObjectMapper.cc

index db129f3..f3c7a15 100644 (file)
@@ -51,6 +51,7 @@ std::shared_ptr<UiObject> ObjectMapper::getElement(std::string elementId)
     }
     else {
         LOGI("Object find fail");
+        mObjectMap.erase(elementId);
         return nullptr;
     }
 }