Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5737

Fix issue where <=> errors if there's a non-document

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 9.1.0, 9.0.4, 8.1.8
    • Affects Version/s: None
    • Component/s: None
    • Ruby Drivers
    • Not Needed

      Mongoid defines <=> but assumes that both documents are Mongoid::Document instances, and it seems that later Rubies actually call <=> for == sometimes - which results in an NPE.

            Assignee:
            darshana.venkatesh@mongodb.com Darshana Venkatesh
            Reporter:
            alex.bevilacqua@mongodb.com Alex Bevilacqua
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: