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

fix: check to see if endpoint is nil before appending the ID in an error #39

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

protochron
Copy link
Contributor

@protochron protochron commented Feb 7, 2024

Feature or Problem

It looks like if an endpoint isn't found we might not always be able to get its ID when logging an error. This caused a panic when it should not have.

Related Issues

Closes #38.

Consumer Impact

Testing

Built on platform(s)

  • x86_64-linux
  • aarch64-linux

Tested on platform(s)

  • x86_64-linux
  • aarch64-linux

Unit Test(s)

Manual Verification

It looks like if an endpoint isn't found we might not always be able to
get its ID when logging an error. This caused a panic when it should not
have.

Fixes #38.
Copy link

netlify bot commented Feb 7, 2024

Deploy Preview for netreap ready!

Name Link
🔨 Latest commit bba3716
🔍 Latest deploy log https://app.netlify.com/sites/netreap/deploys/65c3bbfbf60f080008b532a0
😎 Deploy Preview https://deploy-preview-39--netreap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@thomastaylor312 thomastaylor312 left a comment

Choose a reason for hiding this comment

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

Nice catch on this one

@protochron protochron merged commit 2568a36 into main Feb 7, 2024
6 checks passed
@protochron protochron deleted the fix_nil_endpoint_bug branch February 7, 2024 17:26
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.

[BUG] panic: runtime error: invalid memory address or nil pointer dereference
2 participants