realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.47k stars 1.75k forks source link

Newly Added Field in Realm Getting Null #7857

Closed rahul-kumawat-vts closed 10 months ago

rahul-kumawat-vts commented 1 year ago

How frequently does the bug occur?

Always

Description

In my project i have a RealmObject() class, I have added a new field in that class and install the fresh application in my phone but i am getting null value of newly added fields from Database. Can you please let me know why this issue happen.

Realm Version Using - io.realm:realm-gradle-plugin:10.16.0

Stacktrace & log output

No exception and error logs in logcat

Can you reproduce the bug?

Always

Reproduction Steps

  1. Already create RealmObject Class
  2. Add a New Field
  3. Run the application in any new device
  4. Getting null value from Realm database table.

Version

10.16.0

What Atlas App Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

Android OS -12

Build environment

Android Studio version: Android Studio Flamingo | 2022.2.1 Patch 2 Android Build Tools version: com.android.tools.build:gradle:7.4.2 Gradle version: gradle-7.5

rorbech commented 1 year ago

This sounds a bit like #7840 where incremental build was failing to trigger regeneration of all accessors correctly. Could you give it a try with the latest release?

github-actions[bot] commented 10 months ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.