java.lang.IllegalArgumentException

The observer is null.


Solutions on the web15949

Solution icon of stackoverflow
The observer is null.

Solution icon of stackoverflow
The observer is null.

Solution icon of web
The observer is null.

Solution icon of github
The observer is null.

Solution icon of github
The observer is null.

Solution icon of stackoverflow
The observer is null.

Solution icon of github
The observer is null.

Solution icon of github
The observer is null.


Stack trace

  • java.lang.IllegalArgumentException: The observer is null. at android.database.Observable.unregisterObserver(Observable.java:59) at android.widget.BaseAdapter.unregisterDataSetObserver(BaseAdapter.java:42) at android.widget.HeaderViewListAdapter.unregisterDataSetObserver(HeaderViewListAdapter.java:256) at android.widget.AbsListView.onDetachedFromWindow(AbsListView.java:2373) at android.view.View.dispatchDetachedFromWindow(View.java:9756) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2274) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2272) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:3588) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:3568) at android.view.ViewGroup.removeView(ViewGroup.java:3516) at com.xxxx.android.common.NewsFeedDetailsActivity$LocalAdapter.destroyItem(NewsFeedDetailsActivity.java:150) at android.support.v4.view.ViewPager.populate(ViewPager.java:415) at android.support.v4.view.ViewPager.completeScroll(ViewPager.java:696) at android.support.v4.view.ViewPager.computeScroll(ViewPager.java:668) at android.view.ViewGroup.drawChild(ViewGroup.java:2742) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495) at android.view.ViewGroup.drawChild(ViewGroup.java:2897) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495) at android.view.ViewGroup.drawChild(ViewGroup.java:2897) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495) at android.view.ViewGroup.drawChild(ViewGroup.java:2897) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495) at android.view.ViewGroup.drawChild(ViewGroup.java:2897) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495) at android.view.ViewGroup.drawChild(ViewGroup.java:2897) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495) at android.view.View.draw(View.java:10883) at android.widget.FrameLayout.draw(FrameLayout.java:450) at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2106) at android.view.ViewRootImpl.draw(ViewRootImpl.java:2005) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1613) at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2418) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4340) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method)

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

Samebug visitor profile picture
Unknown user
Once, 1 year ago