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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 0.11
    • Affects Version/s: 1.0
    • Component/s: Performance
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Robert Stam
            Reporter:
            Aristarkh Zagorodnikov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: