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

Nil pointer implementing Zeroer interface should not cause panic

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 0.2.0
    • 0.1.0
    • BSON
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: