Android ViewGroup crash: Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference

前端 未结 10 2207
青春惊慌失措
青春惊慌失措 2020-12-08 00:15

We have found several cases for this kind of crashes reported by backend logging monitoring. It seems the crashes do not tie to particular UX failure. And from the reports,

10条回答
  •  抹茶落季
    2020-12-08 00:38

    I was trying to navigate from Fragment A to Fragment B, and Fragment A was a form that required data from Fragment B.

    So when I tried to navigate without filling up A, it was throwing this exception.

    Also, even if A was independent of the data B, it was throwing this exception.

    I have no idea why but I added a condition where the user had to fill-up the form before navigating away and that solved the issue.

提交回复
热议问题