Merge pull request #16375 from yashykt/nulcheck

Add a nullptr check
reviewable/pr16342/r9^2
Yash Tibrewal 6 years ago committed by GitHub
commit 3bb0cd7769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/cpp/server/server_cc.cc

@ -588,7 +588,7 @@ void Server::Start(ServerCompletionQueue** cqs, size_t num_cqs) {
// If this server has any support for synchronous methods (has any sync
// server CQs), make sure that we have a ResourceExhausted handler
// to deal with the case of thread exhaustion
if (!sync_server_cqs_->empty()) {
if (sync_server_cqs_ != nullptr && !sync_server_cqs_->empty()) {
resource_exhausted_handler_.reset(new internal::ResourceExhaustedHandler);
}

Loading…
Cancel
Save