Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nil check to Dtrie.Get() #207

Merged
merged 1 commit into from
Mar 9, 2020

Conversation

AliceBennett
Copy link
Contributor

Dtrie.Get() currently panics if called with a key that does not exist (due to calling nil.Value() in this case). Adding a nil check here will prevent this panic from happening, and ensure that the behaviour is as described in documentation.

ensures Dtrie.Get() doesn't panic on key not found
@aviary-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

@brianshannan-wf
Copy link
Collaborator

@dustinhiatt-wf

@asido
Copy link

asido commented Mar 9, 2020

Fix tabs and spaces inconsistency.

@brianshannan-wf brianshannan-wf merged commit 0819bca into Workiva:master Mar 9, 2020
@teresarevious-wf
Copy link

RM +1 dependencies verified when consumed in tier 1 repo

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.

6 participants