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

EmptyInterfaceEncoder should handle nil properly

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.0
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None

      When provided with nil the EmptyInterfaceEncodeValue method fails because it attempts to lookup an encoder for nil. Check for nil at the beginning of this method and write a BSON Null if val is nil.

            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: