Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix panic if module by prefix is not found in Find()
Previously, if FindModuleByPrefix() returns nil in Find(), it would continue to call module() with nil, resulting in a nil pointer dereference panic when trying to call ParentNode() from RootNode(). The fix is to return an error if FindModuleByPrefix() returns nil. Fixes #251
- Loading branch information