Skip to content

Conversation

@kamilsa
Copy link
Collaborator

@kamilsa kamilsa commented Oct 5, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 5, 2025 11:11
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a potential crash by adding a null pointer check for protocol objects during protocol negotiation in the listener manager.

  • Added null pointer validation for protocol objects before attempting to use them
  • Added logging and graceful error handling when null protocols are encountered

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

if (rprotocol.has_value()) {
const auto &protocol = rprotocol.value();
if (!protocol) {
log()->warn("can not negotiate protocols, protocol is null");
Copy link

Copilot AI Oct 5, 2025

Choose a reason for hiding this comment

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

Corrected grammar: 'can not' should be 'cannot'.

Copilot uses AI. Check for mistakes.
@kamilsa kamilsa merged commit f1a8116 into main Oct 5, 2025
2 checks passed
@kamilsa kamilsa deleted the fix/interop branch October 5, 2025 11:12
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