Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Component used: Room
Version used: 2.4.0-beta02
Devices/Android versions reproduced on: Pixel 3a (Android 11)
I have 3 entities as defined below (there are other fields in each entity, but for simplicity these are the relevant ones):
My DAO has this function:
I am getting a crash on
kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter library_item_slug
.Looking at the generating
Dao_Impl.java
file I see this in the corresponding generated DAO function:When I renamed column
library_item_slug
in each entity, the function works as expected. It seems the problem is that the overloaded column name is causing problems withCursorUtil.getColumnIndexOrThrow
.