-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot auto upgrade a database with a non null value #824
Comments
ObjectBox ignores Could you provide the stack trace of the crash? |
I use Lombok and so my code looks like the below @DaTa @entity 2020-02-03 15:01:25.593 30716-30716/com.example.objectboxdemo E/Box: Entity creation failed |
Looks like the constructor generated by your tooling does do a null check. However, ObjectBox will pass Two options:
As for ObjectBox supporting default values look at #157. |
Hi, |
I have an Android class with the following fields:
The above code works fine.
For the auto-upgrade, I add a new non-null property named code like the following:
There is a null pointer exception as the database is trying to be upgraded as Objectbox was not able to insert a non-null code for the existing rows.
Please advise on a solution.
The text was updated successfully, but these errors were encountered: