this patch fixes a potentional null-deref error
Change-Id: I0132cdab6410ea10ebb7b00e00306e8a1d5806b6
LOG_SCOPE_F(INFO, "SetValue --------------- ");
ObjectMapper* mObjMap = ObjectMapper::getInstance();
UiObject* obj = mObjMap->getElement(mRequest->elementid());
- obj->setText(const_cast<std::string&>(mRequest->stringvalue()));
+ if (obj) obj->setText(const_cast<std::string&>(mRequest->stringvalue()));
LOG_F(INFO, "%p %s", obj, mRequest->stringvalue().c_str());
-
return grpc::Status::OK;
}
\ No newline at end of file