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

Nil pointer implementing Zeroer interface should not cause panic

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

      If a type implements the Zeroer interface as a value, it should not panic when a pointer to that value type is provided. Additionally, a nil pointer should always be declared zero for the purposes of the Zeroer interface.

            Assignee:
            go-community-user Go Community User
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: