Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
A couple of questions:
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
da...@google.com <da...@google.com>
pr...@google.com <pr...@google.com> #3
Tested on Android 12 Emulator with custom executor, but cannot repro this issue.
Description
Component used:
androidx.room:room-runtime
Version used:
2.5.0+
Devices/Android versions reproduced on:
Robolectric tests
When the here , a
RoomDatabase
class has been converted from Java to Kotlinnull
check was skipped and this causes issues when instantiating the database in Robolectric.master code can be found here
By looking into SystemServiceRegistry , it's clear that this function can return
getSystemService
's implementation found innull
so the null check should still be kept.