Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-150

MongoConnection#tcpClient might be null in MongoConnection.Close()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 1.0
    • 0.11
    • Performance
    • None

    Description

      MongoConnection#tcpClient might be null in MongoConnection.Close() leading to a bunch of handled NullReferenceExceptions (I encountered this when trying to connect to an incomplete replica set). While this does not affect functionality, debugging (especially online) and performance suffers from extra exceptions. I believe that a simple null check would solve the problem.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            onyxmaster Aristarkh Zagorodnikov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: