Skip to content

Add nil check to Dtrie.Get()#207

Merged
brianshannan-wf merged 1 commit intoWorkiva:masterfrom
AliceBennett:dtrie-get-panic
Mar 9, 2020
Merged

Add nil check to Dtrie.Get()#207
brianshannan-wf merged 1 commit intoWorkiva:masterfrom
AliceBennett:dtrie-get-panic

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