Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

fix(lsp): skip unnamed funcs in the unindexed QN lookup

Martin Vogel033c1e0116ee
diff --git a/internal/cbm/lsp/type_registry.c b/internal/cbm/lsp/type_registry.c
index d2b1f5cb1..76e55f1e0 100644
--- a/internal/cbm/lsp/type_registry.c
+++ b/internal/cbm/lsp/type_registry.c
@@ -909,7 +909,8 @@ static const CBMRegisteredFunc *lookup_func_self(const CBMTypeRegistry *reg,
for (int i = 0; i < reg->func_count; i++) {
CBM_LSP_WORK(1);
- if (strcmp(reg->funcs[i].qualified_name, qualified_name) == 0) {
+ if (reg->funcs[i].qualified_name &&
+ strcmp(reg->funcs[i].qualified_name, qualified_name) == 0) {
return &reg->funcs[i];
}
}