Skip to content

FindConfigRoots: return error, not panic#1487

Merged
anderseknert merged 1 commit intoopen-policy-agent:mainfrom
srenatus:push-npqvkvzzqkmp
Apr 16, 2025
Merged

FindConfigRoots: return error, not panic#1487
anderseknert merged 1 commit intoopen-policy-agent:mainfrom
srenatus:push-npqvkvzzqkmp

Conversation

@srenatus
Copy link
Contributor

Stumbled upon this when playing with the LSP and sending bad init parameters -- that caused err to be non-nil, and ran into a nil deref on info.IsDir() 💥

Happy to add a test if you can point out a good spot 😄

@srenatus srenatus force-pushed the push-npqvkvzzqkmp branch from d06fe7d to d917a80 Compare April 16, 2025 12:44
Copy link
Member

@anderseknert anderseknert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@anderseknert anderseknert merged commit 07dd27b into open-policy-agent:main Apr 16, 2025
5 checks passed
@srenatus srenatus deleted the push-npqvkvzzqkmp branch April 16, 2025 12:50
HookFirebolt pushed a commit to HookFirebolt/regal that referenced this pull request Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants