Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
I think it is because we've deprecated the accidently public mDatabase. Should be fine.
Can you share the full warning so we can verify?
Can you share the full warning so we can verify?
da...@google.com <da...@google.com> #3
That's the entire message:
...app\build\generated\source\kapt\remoteDevDebug\za\co\ruggedmobile\petermeter\data\PeterMeterDb_Impl.java:
uses or overrides a deprecated API.
Recompile with -Xlint:deprecation for details.
...app\build\generated\source\kapt\remoteDevDebug\za\co\ruggedmobile\petermeter\data\PeterMeterDb_Impl.java:
uses or overrides a deprecated API.
Recompile with -Xlint:deprecation for details.
Description
Version used: 2.1.0
Devices/Android versions reproduced on: Galaxy J6, Android 9
Hi, I use Room in my app with 2 processes working, with multi-process invalidation tracking set up. I see this crash in my console (and I can't reproduce it on my devices):
Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'void androidx.room.IMultiInstanceInvalidationService.broadcastInvalidation(int, java.lang.String[])' on a null object reference
at androidx.room.MultiInstanceInvalidationClient$6.onInvalidated + 182(MultiInstanceInvalidationClient.java:182)
at androidx.room.InvalidationTracker$ObserverWrapper.notifyByTableInvalidStatus + 636(InvalidationTracker.java:636)
at androidx.room.InvalidationTracker$1.run + 408(InvalidationTracker.java:408)
at java.util.concurrent.ThreadPoolExecutor.runWorker + 1167(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run + 641(ThreadPoolExecutor.java:641)
at java.lang.Thread.run + 764(Thread.java:764)