Description
I'm having a big problem with my app when trying to use realtime database, follows stacktrace:
2019-12-22 10:52:02.026 617-1508/apps.br.intelitempos E/NoopPersistenceManager: Caught Throwable.
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.firebase.database.snapshot.ChildKey.isPriorityChildName()' on a null object reference
at com.google.firebase.database.snapshot.ChildrenNode.getImmediateChild(com.google.firebase:firebase-database@@19.2.0:234)
at com.google.firebase.database.snapshot.ChildrenNode.hasChild(com.google.firebase:firebase-database@@19.2.0:95)
at com.google.firebase.database.core.view.CacheNode.isCompleteForChild(com.google.firebase:firebase-database@@19.2.0:65)
at com.google.firebase.database.core.view.ViewProcessor.cacheHasChild(com.google.firebase:firebase-database@@19.2.0:408)
at com.google.firebase.database.core.view.ViewProcessor.applyUserMerge(com.google.firebase:firebase-database@@19.2.0:428)
at com.google.firebase.database.core.view.ViewProcessor.applyOperation(com.google.firebase:firebase-database@@19.2.0:104)
at com.google.firebase.database.core.view.View.applyOperation(com.google.firebase:firebase-database@@19.2.0:169)
at com.google.firebase.database.core.SyncPoint.applyOperationToView(com.google.firebase:firebase-database@@19.2.0:76)
at com.google.firebase.database.core.SyncPoint.applyOperation(com.google.firebase:firebase-database@@19.2.0:107)
at com.google.firebase.database.core.SyncTree.applyOperationDescendantsHelper(com.google.firebase:firebase-database@@19.2.0:966)
at com.google.firebase.database.core.SyncTree.applyOperationHelper(com.google.firebase:firebase-database@@19.2.0:897)
at com.google.firebase.database.core.SyncTree.applyOperationHelper(com.google.firebase:firebase-database@@19.2.0:916)
at com.google.firebase.database.core.SyncTree.applyOperationToSyncPoints(com.google.firebase:firebase-database@@19.2.0:883)
at com.google.firebase.database.core.SyncTree.access$400(com.google.firebase:firebase-database@@19.2.0:76)
at com.google.firebase.database.core.SyncTree$2.call(com.google.firebase:firebase-database@@19.2.0:222)
at com.google.firebase.database.core.SyncTree$2.call(com.google.firebase:firebase-database@@19.2.0:214)
at com.google.firebase.database.core.persistence.NoopPersistenceManager.runInTransaction(com.google.firebase:firebase-database@@19.2.0:126)
at com.google.firebase.database.core.SyncTree.applyUserMerge(com.google.firebase:firebase-database@@19.2.0:213)
at com.google.firebase.database.core.Repo.updateChildren(com.google.firebase:firebase-database@@19.2.0:487)
at com.google.firebase.database.DatabaseReference$3.run(com.google.firebase:firebase-database@@19.2.0:422)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
2019-12-22 10:52:02.035 617-1508/apps.br.intelitempos E/RunLoop: Uncaught exception in Firebase Database runloop (19.2.0). If you are not already on the latest version of the Firebase SDKs, try updating your dependencies. Should this problem persist, please file a report at https://github.com/firebase/firebase-android-sdk
java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.firebase.database.snapshot.ChildKey.isPriorityChildName()' on a null object reference
at com.google.firebase.database.core.persistence.NoopPersistenceManager.runInTransaction(com.google.firebase:firebase-database@@19.2.0:131)
at com.google.firebase.database.core.SyncTree.applyUserMerge(com.google.firebase:firebase-database@@19.2.0:213)
at com.google.firebase.database.core.Repo.updateChildren(com.google.firebase:firebase-database@@19.2.0:487)
at com.google.firebase.database.DatabaseReference$3.run(com.google.firebase:firebase-database@@19.2.0:422)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.firebase.database.snapshot.ChildKey.isPriorityChildName()' on a null object reference
at com.google.firebase.database.snapshot.ChildrenNode.getImmediateChild(com.google.firebase:firebase-database@@19.2.0:234)
at com.google.firebase.database.snapshot.ChildrenNode.hasChild(com.google.firebase:firebase-database@@19.2.0:95)
at com.google.firebase.database.core.view.CacheNode.isCompleteForChild(com.google.firebase:firebase-database@@19.2.0:65)
at com.google.firebase.database.core.view.ViewProcessor.cacheHasChild(com.google.firebase:firebase-database@@19.2.0:408)
at com.google.firebase.database.core.view.ViewProcessor.applyUserMerge(com.google.firebase:firebase-database@@19.2.0:428)
at com.google.firebase.database.core.view.ViewProcessor.applyOperation(com.google.firebase:firebase-database@@19.2.0:104)
at com.google.firebase.database.core.view.View.applyOperation(com.google.firebase:firebase-database@@19.2.0:169)
at com.google.firebase.database.core.SyncPoint.applyOperationToView(com.google.firebase:firebase-database@@19.2.0:76)
at com.google.firebase.database.core.SyncPoint.applyOperation(com.google.firebase:firebase-database@@19.2.0:107)
at com.google.firebase.database.core.SyncTree.applyOperationDescendantsHelper(com.google.firebase:firebase-database@@19.2.0:966)
at com.google.firebase.database.core.SyncTree.applyOperationHelper(com.google.firebase:firebase-database@@19.2.0:897)
at com.google.firebase.database.core.SyncTree.applyOperationHelper(com.google.firebase:firebase-database@@19.2.0:916)
at com.google.firebase.database.core.SyncTree.applyOperationToSyncPoints(com.google.firebase:firebase-database@@19.2.0:883)
at com.google.firebase.database.core.SyncTree.access$400(com.google.firebase:firebase-database@@19.2.0:76)
at com.google.firebase.database.core.SyncTree$2.call(com.google.firebase:firebase-database@@19.2.0:222)
at com.google.firebase.database.core.SyncTree$2.call(com.google.firebase:firebase-database@@19.2.0:214)
at com.google.firebase.database.core.persistence.NoopPersistenceManager.runInTransaction(com.google.firebase:firebase-database@@19.2.0:126)
at com.google.firebase.database.core.SyncTree.applyUserMerge(com.google.firebase:firebase-database@@19.2.0:213)
at com.google.firebase.database.core.Repo.updateChildren(com.google.firebase:firebase-database@@19.2.0:487)
at com.google.firebase.database.DatabaseReference$3.run(com.google.firebase:firebase-database@@19.2.0:422)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
2019-12-22 10:52:02.039 617-617/apps.br.intelitempos D/AndroidRuntime: Shutting down VM
2019-12-22 10:52:02.048 617-617/apps.br.intelitempos E/AndroidRuntime: FATAL EXCEPTION: main
Process: apps.br.intelitempos, PID: 617
java.lang.RuntimeException: Uncaught exception in Firebase Database runloop (19.2.0). If you are not already on the latest version of the Firebase SDKs, try updating your dependencies. Should this problem persist, please file a report at https://github.com/firebase/firebase-android-sdk
at com.google.firebase.database.android.AndroidPlatform$1$1.run(com.google.firebase:firebase-database@@19.2.0:96)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6647)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.firebase.database.snapshot.ChildKey.isPriorityChildName()' on a null object reference
at com.google.firebase.database.core.persistence.NoopPersistenceManager.runInTransaction(com.google.firebase:firebase-database@@19.2.0:131)
at com.google.firebase.database.core.SyncTree.applyUserMerge(com.google.firebase:firebase-database@@19.2.0:213)
at com.google.firebase.database.core.Repo.updateChildren(com.google.firebase:firebase-database@@19.2.0:487)
at com.google.firebase.database.DatabaseReference$3.run(com.google.firebase:firebase-database@@19.2.0:422)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.firebase.database.snapshot.ChildKey.isPriorityChildName()' on a null object reference
at com.google.firebase.database.snapshot.ChildrenNode.getImmediateChild(com.google.firebase:firebase-database@@19.2.0:234)
at com.google.firebase.database.snapshot.ChildrenNode.hasChild(com.google.firebase:firebase-database@@19.2.0:95)
at com.google.firebase.database.core.view.CacheNode.isCompleteForChild(com.google.firebase:firebase-database@@19.2.0:65)
at com.google.firebase.database.core.view.ViewProcessor.cacheHasChild(com.google.firebase:firebase-database@@19.2.0:408)
at com.google.firebase.database.core.view.ViewProcessor.applyUserMerge(com.google.firebase:firebase-database@@19.2.0:428)
at com.google.firebase.database.core.view.ViewProcessor.applyOperation(com.google.firebase:firebase-database@@19.2.0:104)
at com.google.firebase.database.core.view.View.applyOperation(com.google.firebase:firebase-database@@19.2.0:169)
at com.google.firebase.database.core.SyncPoint.applyOperationToView(com.google.firebase:firebase-database@@19.2.0:76)
at com.google.firebase.database.core.SyncPoint.applyOperation(com.google.firebase:firebase-database@@19.2.0:107)
at com.google.firebase.database.core.SyncTree.applyOperationDescendantsHelper(com.google.firebase:firebase-database@@19.2.0:966)
at com.google.firebase.database.core.SyncTree.applyOperationHelper(com.google.firebase:firebase-database@@19.2.0:897)
at com.google.firebase.database.core.SyncTree.applyOperationHelper(com.google.firebase:firebase-database@@19.2.0:916)
at com.google.firebase.database.core.SyncTree.applyOperationToSyncPoints(com.google.firebase:firebase-database@@19.2.0:883)
at com.google.firebase.database.core.SyncTree.access$400(com.google.firebase:firebase-database@@19.2.0:76)
at com.google.firebase.database.core.SyncTree$2.call(com.google.firebase:firebase-database@@19.2.0:222)
2019-12-22 10:52:02.049 617-617/apps.br.intelitempos E/AndroidRuntime: at com.google.firebase.database.core.SyncTree$2.call(com.google.firebase:firebase-database@@19.2.0:214)
at com.google.firebase.database.core.persistence.NoopPersistenceManager.runInTransaction(com.google.firebase:firebase-database@@19.2.0:126)
... 9 more
If you need details of my source code, please just let me know.