Skip to content

Add error handling instead of panic on nil#54

Merged
Minosity-VR merged 1 commit into
DataDog:mainfrom
edznux-dd:edouard/tiny-bugfix
Apr 22, 2026
Merged

Add error handling instead of panic on nil#54
Minosity-VR merged 1 commit into
DataDog:mainfrom
edznux-dd:edouard/tiny-bugfix

Conversation

@edznux-dd

Copy link
Copy Markdown
Contributor

What does this PR do?

Just a tiny improvement on error handling on missing field. This should avoid panic'ing on bad attack definition files..

Motivation

Just doing some cleanup!

Checklist

  • Unit tests
  • Documentation

@edznux-dd
edznux-dd requested review from a team as code owners April 21, 2026 17:12

@Minosity-VR Minosity-VR left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the fix!

@Minosity-VR
Minosity-VR merged commit a799027 into DataDog:main Apr 22, 2026
4 checks passed
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