Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-2167

Issue with building keypath in C API

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

      Considering the method build_key_path_array, it seems it does not allow to create an empty KeyPathArray:

      https://github.com/realm/realm-core/blob/d318021ae7b47a7c38ec14bc9ab10d608c128e72/src/realm/object-store/c_api/notifications.cpp#L67-L74

      The method returns std::nullopt in two scenarios:

      1. When key_path_array is nullptr.
      2. When key_path_array points to an array with a length of zero.

      But in case 2 it should return an empty KeyPathArray.

            Assignee:
            jorgen.edelbo@mongodb.com Jørgen Edelbo
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: