java.lang.RuntimeException

Unable to resume activity {Screens.DetailActivity}: java.lang.NullPointerException: Attempt to read from field 'io.realm.HandlerController io.realm.BaseRealm.handlerController' on a null object reference

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

Stack trace

  • java.lang.RuntimeException: Unable to resume activity {Screens.DetailActivity}: java.lang.NullPointerException: Attempt to read from field 'io.realm.HandlerController io.realm.BaseRealm.handlerController' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3103) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3134) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1388) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.NullPointerException: Attempt to read from field 'io.realm.HandlerController io.realm.BaseRealm.handlerController' on a null object reference at io.realm.RealmRecyclerViewAdapter.removeListener(RealmRecyclerViewAdapter.java:171) at io.realm.RealmRecyclerViewAdapter.updateData(RealmRecyclerViewAdapter.java:139) at Screens.DetailActivity.getProjectArticles(DetailActivity.java:229) at Screens.DetailActivity.loadArticles(DetailActivity.java:212) at Screens.DetailActivity.onResume(DetailActivity.java:148) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1258) at android.app.Activity.performResume(Activity.java:6312) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3092)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

We couldn't find other users who have seen this exception.