northwesternmutual / grammes

A Go package built to communicate with Apache TinkerPop™ Graph computing framework using Gremlin; a graph traversal language used by graph databases such as JanusGraph®, MS Cosmos DB, AWS Neptune, and DataStax® Enterprise Graph.
Apache License 2.0
125 stars 45 forks source link

VertexByID panic when no vertex found #3

Closed shutcode closed 4 years ago

shutcode commented 4 years ago
panic: runtime error: index out of range

goroutine 1 [running]:
test/gremlin/vendor/github.com/northwesternmutual/grammes/manager.(*getVertexQueryManager).VertexByID(0xc000158040, 0xa590b0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /home/chris/go/src/test/gremlin/vendor/github.com/northwesternmutual/grammes/manager/getvertex.go:118 +0x25a

len(vertices) should be checked

damienstamates commented 4 years ago

Merged into master and is active in v1.1.0. Closing.