TonicArtos / StickyGridHeaders

This project has been superseded by SuperSLiM, a layout manager for RecyclerView. I strongly recommend using SuperSLiM and not StickyGridHeaders.
http://tonicartos.com
Apache License 2.0
1.47k stars 442 forks source link

setAdapter(null) causes null pointer exception #87

Closed MartinRajniak closed 6 years ago

MartinRajniak commented 10 years ago

Your adapter wrapper is created all the time, even when I want to nullify adapter for a view, and thus the null pointer exception occurs when view through wrapper tries to call adapter method.

Otherwise adapter methods wouldn't be called. Just don't create wrapper when null is supplied, so view behaves correctly.