- Forum posts: 6
Dec 15, 2015, 11:33:40 AM via Website
Dec 15, 2015 11:33:40 AM via Website
Am trying to develop a register system in Android studio, however it registers users but the application closes down as it gives java.lang.NullPointerException error.
Errro Messages
E/JSON Parser﹕ Error parsing data org.json.JSONException: Value
2015-12-09 of type java.lang.String cannot be converted to JSONObjectE/AndroidRuntime﹕ FATAL EXCEPTION: mainPID: 2386
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.json.JSONObject.getString(java.lang.String)' on
a null object reference [CODE]> at com.bradvisor.bradvisor.Register$ProcessRegister.onPostExecute(Register.java:214)
if (json.getString(KEY_SUCCESS) != null) { - Line 214: where I get an
error message, not to sure whyat com.bradvisor.bradvisor.Register$ProcessRegister.onPostExecute(Register.java:171)
private class ProcessRegister extends AsyncTask JSONObject> { - Line 171: where I get an error message, not to sure
why.[/CODE]
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.