Uploaded image for project: 'Realm Java SDK'
  1. Realm Java SDK
  2. RJAVA-97

Support `null` element in `RealmList`

      like this

      public class Dog extends RealmObject {
          private String name;
          private int age;
      
          // ... Generated getters and setters ...
      }
      
      RealmList<Dog > dogs= new RealmList<>();
      dogs.add(null);
      

      but I can't use "dogs.add(null);"

       Caused by: java.lang.IllegalArgumentException: RealmList does not accept null values
                                                                       at io.realm.RealmList.checkValidObject(RealmList.java:733)
                                                                       at io.realm.RealmList.add(RealmList.java:187)
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: