8

NPE for button in Custom ListView

view full story
linux-howto

http://stackoverflow.com – I have a custom listview, each cell has 5 textviews and 2 button. Somehow when i scroll i get NPE for the button in the getView method. Pasting the log 01-27 08:15:40.654: D/AndroidRuntime(15471): Shutting down VM 01-27 08:15:40.654: W/dalvikvm(15471): threadid=1: thread exiting with uncaught exception (group=0x40c181f8) 01-27 08:15:40.662: E/AndroidRuntime(15471): FATAL EXCEPTION: main 01-27 08:15:40.662: E/AndroidRuntime(15471): java.lang.NullPointerException 01-27 08:15:40.662: E/AndroidRuntime(15471): at com.example.collegesoft.ViewAttendance$MyAdapter.getView(ViewAttendance.java (HowTos)