Skip to content

Commit d55f7ec

Browse files
yroblataskbot
andauthored
fix error of invalid memory address on TestAudit (#3134)
Co-authored-by: taskbot <[email protected]>
1 parent da8a72d commit d55f7ec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/vmcp/server/server.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,13 @@ func New(
312312
return
313313
}
314314

315+
// Validate that routing table exists
316+
if caps.RoutingTable == nil {
317+
logger.Warnw("routing table is nil in discovered capabilities",
318+
"session_id", sessionID)
319+
return
320+
}
321+
315322
// Add composite tools to capabilities
316323
// Composite tools are static (from configuration) and not discovered from backends
317324
// They are added here to be exposed alongside backend tools in the session

0 commit comments

Comments
 (0)