java - NullPointerException - attempt to invoke virtual method `notifyDataSetChanged()` - can't see list created -
    i'm working way through this tutorial  , stuck adding names list, , having list populate.   here's i'm trying get, list of names type in in input box:   (the underlined "darryl" input box, , shows name (after hitting button) on top, adds list).   i'm getting error though:   08-24 18:17:50.903  21935-21935/com.example.batman.myapplication e/androidruntime﹕ fatal exception: main     process: com.example.batman.myapplication, pid: 21935     java.lang.nullpointerexception: attempt invoke virtual method 'void android.widget.arrayadapter.notifydatasetchanged()' on null object reference             @ com.example.batman.myapplication.mainactivity.onclick(mainactivity.java:65)             @ android.view.view.performclick(view.java:5217)             @ android.view.view$performclick.run(view.java:20983)             @ android.os.handler.handlecallback(handler.java:739)             @ android.os.handler.dispatchmessage(handler.java:95)             @ android.os.l...