NPE on my Android App for setOnClickListener

I’m trying to implement a ListView with an embedded Button. I’ve made my list item view separately and followed this tutorial.

When I try running it, I get an NPE on the button’s setOnClickListener because it says it’s a null reference. Kindly point out where I’ve gone wrong or if I need to do anything else.


Source: android

Leave a Reply