java - "Null object" error when setting a adapter -
          this question has answer here:                               what nullpointerexception, , how fix it?                                         12 answers                                          i'm getting error when set adapter. have listview id lv_cine  in view.   edit 1: added wrong codes same this.   edit 2: ok managed past first error, i'm getting similar one:   12-01 20:43:44.445    7617-7617/com.example.maria.maria e/androidruntime﹕ fatal exception: main     process: com.example.maria.maria, pid: 7617     java.lang.nullpointerexception: attempt invoke interface method 'int java.util.list.size()' on null object reference             @ android.widget.simpleadapter.getcount(simpleadapter.java:93)             @ android.widget.listview.setadapter(listview.java:487)             @ com.example.maria.maria.cinema$getcontacts.onpostexecute(cinema.java:146)             @ com.example.maria.maria.cinema$getcontacts.onpostexecute(cinema.java:67)             @ android...