NullPointerException - Attempt to invoke virtual method RecyclerView$ViewHolder.shouldIgnore()' on a null object reference

后端 未结 6 1958
谎友^
谎友^ 2020-12-06 00:00

Several developers have reported seeing the following stack trace since upgrading to Android Support 23.2.0:

java.lang.NullPointerException: Attempt to invok         


        
6条回答
  •  难免孤独
    2020-12-06 00:25

    I met up with this exception just now, and I fixed it by changing framgent to FragmentLayout.

    My adapter used some data in fragment argument, and the using fragment in xml does not fill the data, so the bug occurs.

    Just post this here, maybe useful to someone.

提交回复
热议问题