Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SERVER-6709 Don't call ->done() on a null ptr

  • Loading branch information...
commit bf724ef21063d3f7f9dec856ef602899b5d0ea14 1 parent 2069338
Mathias Stearn RedBeard0531 authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/mongo/s/client_info.cpp
9 src/mongo/s/client_info.cpp
View
@@ -247,11 +247,12 @@ namespace mongo {
}
catch( std::exception &e ){
- // Safe to return here, since we haven't started any extra processing yet, just collecting
- // responses.
+ // Safe to return here, since we haven't started any extra processing yet, just collecting
+ // responses.
- warning() << "could not get last error from a shard " << theShard << causedBy( e ) << endl;
- conn->done();
+ warning() << "could not get last error from a shard " << theShard << causedBy( e ) << endl;
+ if (conn)
+ conn->done();
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.