Null Pointer Exception While Trying To Save Registration Data Of My Android App In Local Server

I just tried to link My Android app with local server just for login details and got the following error.

All the codes is available here.

please help me.

The below is my Logcat:

07-01 08:37:02.301: W/dalvikvm(2069): threadid=1: thread exiting with uncaught exception (group=0xb4a49b90)
07-01 08:37:02.341: E/AndroidRuntime(2069): FATAL EXCEPTION: main
07-01 08:37:02.341: E/AndroidRuntime(2069): Process: com.example.localserver, PID: 2069
07-01 08:37:02.341: E/AndroidRuntime(2069): java.lang.NullPointerException
07-01 08:37:02.341: E/AndroidRuntime(2069):     at com.example.localserver.RegisterActivity.registerUser(RegisterActivity.java:185)
07-01 08:37:02.341: E/AndroidRuntime(2069):     at com.example.localserver.RegisterActivity.access$3(RegisterActivity.java:106)
07-01 08:37:02.341: E/AndroidRuntime(2069):     at com.example.localserver.RegisterActivity$1.onClick(RegisterActivity.java:80)
07-01 08:37:02.341: E/AndroidRuntime(2069):     at android.view.View.performClick(View.java:4424)
07-01 08:37:02.341: E/AndroidRuntime(2069):     at android.view.View$PerformClick.run(View.java:18383)
07-01 08:37:02.341: E/AndroidRuntime(2069):     at android.os.Handler.handleCallback(Handler.java:733)
07-01 08:37:02.341: E/AndroidRuntime(2069):     at android.os.Handler.dispatchMessage(Handler.java:95)
07-01 08:37:02.341: E/AndroidRuntime(2069):     at android.os.Looper.loop(Looper.java:137)
07-01 08:37:02.341: E/AndroidRuntime(2069):     at android.app.ActivityThread.main(ActivityThread.java:4998)
07-01 08:37:02.341: E/AndroidRuntime(2069):     at java.lang.reflect.Method.invokeNative(Native Method)
07-01 08:37:02.341: E/AndroidRuntime(2069):     at java.lang.reflect.Method.invoke(Method.java:515)
07-01 08:37:02.341: E/AndroidRuntime(2069):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
07-01 08:37:02.341: E/AndroidRuntime(2069):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
07-01 08:37:02.341: E/AndroidRuntime(2069):     at dalvik.system.NativeStart.main(Native Method)
07-01 08:42:02.591: I/Process(2069): Sending signal. PID: 2069 SIG: 9


Source: wampserver

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.