mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
31aa3e9bc66bb802632c87993f984991545becfa
Config intents from module.json5 may have empty bundleName (developers omit it, similar to moduleName). ConvertFromConfigIntent sets functionNamespace = info.bundleName → empty. Old RegisterInsightIntentFunctions had a fallback using the bundleName parameter, but BatchRegisterInsightIntentFunctions lacked this. Empty functionNamespace causes FunctionInfo::Validate failure and KVStore registration silently drops the function. Add fallback: when functionNamespace is empty and bundleVersionMap has exactly one entry (single-bundle call from event_mgr), use that entry's key as the namespace. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> 🤖 AI[100%] 👌 AI Adopted[100%] 🧑 Human[0%] Co-authored-by: claude (glm-5.2) <ai@local>
Description
暂无描述
Languages
C++
98.1%
C
1.5%
JavaScript
0.2%
TypeScript
0.1%