server: nil-check OrchestratorInfo on BroadcastSession getters#3919
server: nil-check OrchestratorInfo on BroadcastSession getters#3919SAY-5 wants to merge 3 commits into
Conversation
Transcoder() and Address() crashed when a session reused a session whose OrchestratorInfo had been wiped by selection filters; return empty strings rather than panicking the caller goroutine. Signed-off-by: SAY-5 <say.apm35@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds defensive nil-checks to two RPC session methods that access orchestrator information. Both ChangesOrchestrator Info Nil-Safety Guards
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing in favor of #3939, which handles the panic at the reported call site and includes a test. |
Transcoder()andAddress()panicked when a session whoseOrchestratorInfohad been wiped by selection filters was reused. Return empty strings rather than crashing the caller goroutine. Fixes #3917.Summary by CodeRabbit