ValueEncoders should check if pointer is nil

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Kristofer Brandow (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: