[PR #1381] [MERGED] Fix nil pointer handling in get peers from group #15315

Closed
opened 2026-08-05 03:07:24 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1381
Author: @pascal-fischer
Created: 12/12/2023
Status: Merged
Merged: 12/12/2023
Merged by: @mlsmaycon

Base: mainHead: fix/nil-handling-in-peer-group-lookup


📝 Commits (2)

  • 42026a2 fix nil handling in getAllPeersFromGroups
  • cdb04f0 unify both skip conditions

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 management/server/policy.go (+5 -1)

📄 Description

Describe your changes

Fix nil handling in getAllPeersFromGroups to not include nil pointer in the output.

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/1381 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 12/12/2023 **Status:** ✅ Merged **Merged:** 12/12/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/nil-handling-in-peer-group-lookup` --- ### 📝 Commits (2) - [`42026a2`](https://github.com/netbirdio/netbird/commit/42026a280b687cd0fd7354eabda5df2c6cb1ca0c) fix nil handling in getAllPeersFromGroups - [`cdb04f0`](https://github.com/netbirdio/netbird/commit/cdb04f0d0db9d10c87a082b5e2b679f1d85abaf9) unify both skip conditions ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `management/server/policy.go` (+5 -1) </details> ### 📄 Description ## Describe your changes Fix nil handling in getAllPeersFromGroups to not include nil pointer in the output. ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:07:24 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#15315