diff --git a/frameworks/js/napi/src/common_convert_request.cpp b/frameworks/js/napi/src/common_convert_request.cpp index 0ad27f935df18dcae469232bb75ce3e2d2a79bb8..480992f3d3bb6254e66bc239cbc1677d50e1bf94 100644 --- a/frameworks/js/napi/src/common_convert_request.cpp +++ b/frameworks/js/napi/src/common_convert_request.cpp @@ -1846,12 +1846,6 @@ napi_value Common::GetNotificationActionButtonsDetailedBasicInfo( } NAPI_CALL(env, napi_get_value_string_utf8(env, value, str, STR_MAX_SIZE - 1, &strLen)); title = str; - if (title.empty()) { - ANS_LOGE("Property title in actionButton cannot be empty, but get an empty title in publish process."); - std::string msg = "Incorrect parameter types.The content of property title in actionButton cannot be empty."; - Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); - return nullptr; - } // wantAgent: WantAgent NAPI_CALL(env, napi_has_named_property(env, actionButton, "wantAgent", &hasProperty));