trustgraph/trustgraph-flow
Baima (Hermes Agent) 4f2445bf71 fix: guard against IndexError on empty query string in SPARQL generator
Issue #870: query.split() on an empty or whitespace-only string returns
an empty list, and accessing [0] raises IndexError. Although the existing
startswith guard on line 205 already prevents this in practice (empty
strings won't match SPARQL keywords), the direct indexing is fragile.

Refactor to split first and check the result before indexing, making the
code resilient to future refactoring of the upstream guard.
2026-05-08 07:14:10 +08:00
..
trustgraph fix: guard against IndexError on empty query string in SPARQL generator 2026-05-08 07:14:10 +08:00
pyproject.toml feat: IAM service, gateway auth middleware, capability model, and CLIs (#849) 2026-04-24 17:29:10 +01:00
README.md Maint/fix build env (#84) 2024-09-30 19:47:09 +01:00