Skip to content

Commit aa89853

Browse files
committed
Fix[mqbblp::ClusterCatalog]: add missing precondition check for raw pointer
Signed-off-by: Evgeny Malygin <emalygin@bloomberg.net>
1 parent 763a1bb commit aa89853

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/groups/mqb/mqbblp/mqbblp_clustercatalog.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,9 @@ mqbnet::ClusterNode* ClusterCatalog::onNegotiationForClusterSession(
662662
int ClusterCatalog::processCommand(mqbcmd::ClustersResult* result,
663663
const mqbcmd::ClustersCommand& command)
664664
{
665+
// PRECONDITIONS
666+
BSLS_ASSERT(result);
667+
665668
if (command.isListValue()) {
666669
bslmt::LockGuard<bslmt::Mutex> guard(&d_mutex); // LOCK
667670

0 commit comments

Comments
 (0)