Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-599

ValueEncoders should check if pointer is nil

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.18
    • Affects Version/s: 0.0.16
    • Component/s: BSON
    • Labels:

      Currently when a pointer to a value, such as *objectid.ObjectID is encoded the value of the pointer is taken without first checking to see if the pointer is nil. Add a check to see if the pointer is nil and if it is, write a BSON null for the value instead. This should be done for all of the default encoders and primitive encoders.

            Assignee:
            isabella.siu@mongodb.com Isabella Siu (Inactive)
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: