Uploaded image for project: 'Realm Dart SDK'
  1. Realm Dart SDK
  2. RDART-748

Freezing results created from a list of embedded objects on a realm object since deleted will crash

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

      This test case would crash currently:

      Unable to find source-code formatter for language: dart. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
        test('freeze/embedded bug', () {
          final realm = getLocalRealm();
      
          final parent = ObjectWithEmbedded('1', recursiveList: [RecursiveEmbedded1('1.1')]);
          realm.write(() => realm.add(parent));
      
          final embeddedListAsResults = parent.recursiveList.asResults();
      
          realm.write(() => realm.delete(parent));
      
          expect(() => embeddedListAsResults.freeze(), throwsException); // <-- crashes
        });
      

            Assignee:
            kasper.nielsen@mongodb.com Kasper Nielsen (Inactive)
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: