mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 12:37:49 +00:00
Fixed runaway rolodex.
The rolodex was running away and locking up vacuum. Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -58,7 +58,7 @@ func FindComponent(root *yaml.Node, componentId, absoluteFilePath string, index
|
||||
friendlySearch = "$"
|
||||
}
|
||||
path, err := yamlpath.NewPath(friendlySearch)
|
||||
if path == nil || err != nil {
|
||||
if path == nil || err != nil || root == nil {
|
||||
return nil // no component found
|
||||
}
|
||||
res, _ := path.Find(root)
|
||||
|
||||
Reference in New Issue
Block a user