Trail-Sense
Trail-Sense copied to clipboard
SQLiteConstraintException while adding a path waypoint
Reported by 1 user on 5.3.1 (Android 13)
Possible causes of this:
- Null being put into a non-null column (this shouldn't be possible with the Kotlin entity types)
- Duplicate ID being inserted
Exception android.database.sqlite.SQLiteConstraintException: at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId (SQLiteConnection.java:961) at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId (SQLiteSession.java:790) at android.database.sqlite.SQLiteStatement.executeInsert (SQLiteStatement.java:89) at androidx.sqlite.db.framework.FrameworkSQLiteStatement.executeInsert (FrameworkSQLiteStatement.java:1) at androidx.room.EntityInsertionAdapter.insert (EntityInsertionAdapter.java:1) at com.kylecorry.trail_sense.navigation.paths.infrastructure.persistence.WaypointDao_Impl$9.call (WaypointDao_Impl.java:100) at com.kylecorry.trail_sense.navigation.paths.infrastructure.persistence.WaypointDao_Impl$9.call (WaypointDao_Impl.java:17) at androidx.room.CoroutinesRoom$Companion$execute$2.invokeSuspend (CoroutinesRoom.java:1) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (BaseContinuationImpl.java:1) at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.java:1) at androidx.room.TransactionExecutor.execute$lambda$1$lambda$0 (TransactionExecutor.java:152) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644) at java.lang.Thread.run (Thread.java:1012)