java.lang.IllegalArgumentException: The observer is null

后端 未结 3 1167
慢半拍i
慢半拍i 2021-02-06 00:48

A user of one of my apps reported this error. I\'m confused as to what it means an how to fix it. After a bit of googling...still no luck. Anyone seen this before or know how

3条回答
  •  攒了一身酷
    2021-02-06 01:23

    I too was having the same problem and it seems that unregisterDataSetObserver on your DealPageAdapter is being called twice. To fix the problem I overwrote the unregisterDataSetObserver in my Adapter as such

    @Override
    public void unregisterDataSetObserver(DataSetObserver observer) {
        if (observer != null) {
            super.unregisterDataSetObserver(observer);
        }
    }
    

    Hope this helps!

提交回复
热议问题