Android SQLDelight - "NOT NULL constraint failed" on a field that is not nullable

443 Views Asked by At

Basically as the title says.

I have a UUID field which is declared NOT NULL:

sheet_id TEXT AS UUID NOT NULL,

The field is mapped from a non-nullable field in our model class:

val sheetId: UUID,

But there has been a non-trivial number of Non-fatal Exception: android.database.sqlite.SQLiteConstraintException non-fatals logged for that field in Crashlytics. How is this possible?

The model/table in question has other NOT NULL UUID fields that don't seem to have this issue.

0

There are 0 best solutions below