android - app stops immediately after i click register -


i'm stuck on error, app stops click register. need correct register_activity.java there no errors

caused by: java.lang.nullpointerexception: attempt invoke virtual method 'void android.view.view.setonclicklistener(android.view.view$onclicklistener)' on null object reference                                                                                            @ ke.co.myresolv.www.myresolvkenyalogin.activities.registeractivity.initlisteners(registeractivity.java:79)                                                                                            @ ke.co.myresolv.www.myresolvkenyalogin.activities.registeractivity.oncreate(registeractivity.java:52)                                                                                            @ android.app.activity.performcreate(activity.java:6679)                                                                                            @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1118)                                                                                            @ android.app.activitythread.performlaunchactivity(activitythread.java:2618)                                                                                            @ android.app.activitythread.handlelaunchactivity(activitythread.java:2726)                                                                                             @ android.app.activitythread.-wrap12(activitythread.java)                                                                                             @ android.app.activitythread$h.handlemessage(activitythread.java:1477)                                                                                             @ android.os.handler.dispatchmessage(handler.java:102)                                                                                             @ android.os.looper.loop(looper.java:154)                                                                                             @ android.app.activitythread.main(activitythread.java:6119)                                                                                             @ java.lang.reflect.method.invoke(native method)                                                                                             @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:886)                                                                                             @ com.android.internal.os.zygoteinit.main(zygoteinit.java:776) 

make sure button has been correctly assigned correct id of corresponding xml. i.e. button myregisterbtn = (button)findviewbyid(r.id.myregisterbtn);//make sure id within findviewbyid located in xml inflated in activity.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -