I had a number of requests on how to solve similar problems with Android RecyclerViews either having NullPointerExceptions, or just not properly displaying data. In this video, I use the Android RecyclerView as an example, but I give you a general process for how to use tools like the Debugger to solve any kind of bug, exception, or unexpected behaviour.
The process is simple:
- Gather Information
- Make Assertions
- Test Assertions
I do not necessarily mean making and testing assertions programatically (although that works too), I mean use your HEAD!