java.lang.IllegalStateException: Realm instance has been closed or this object or its parent has been deleted.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Michael
, 6 months ago
Realm instance has been closed or this object or its parent has been deleted.
via GitHub by amitiwary999
, 1 month ago
Realm instance has been closed or this object or its parent has been deleted.
java.lang.IllegalStateException: Realm instance has been closed or this object or its parent has been deleted.
at io.realm.RealmList.checkValidView(Unknown Source)
at io.realm.RealmList.size(Unknown Source)
at io.realm.RealmBaseAdapter.getCount(Unknown Source)
at android.widget.AdapterView$AdapterDataSetObserver.onChanged(AdapterView.java:826)
at android.widget.AbsListView$AdapterDataSetObserver.onChanged(AbsListView.java:6728)
at android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37)
at io.realm.RealmBaseAdapter$1.onChange(Unknown Source)
at io.realm.RealmBaseAdapter$1.onChange(Unknown Source)
at io.realm.internal.Collection$RealmChangeListenerWrapper.onChange(Unknown Source)
at io.realm.internal.Collection$CollectionObserverPair.onChange(Unknown Source)
at io.realm.internal.Collection$Callback.onCalled(Unknown Source)
at io.realm.internal.Collection$Callback.onCalled(Unknown Source)
at io.realm.internal.ObserverPairList.foreach(Unknown Source)
at io.realm.internal.Collection.notifyChangeListeners(Unknown Source)
at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
at android.os.MessageQueue.next(MessageQueue.java:328)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:5728)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.