failed client creation doesn't result in Null returned

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.0.2
    • Component/s: None
    • Environment:
      Windows 7, visual studio 2010 express,
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Utilising the mongoc driver, ive discovered that when you create a connection, using
      client = mongoc_client_new(connection_string);

      The returned value when the mongodb isnt running is not a null value. This means any tests/checks carried out do not catch that the server hasnt been connected to, causing issues further down the line.

      Looking in the source I can't see anything that would set a value Null, either in v1.0.2, not v1.1.0 that was recently released.

            Assignee:
            Unassigned
            Reporter:
            Mark Stevens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: