I am trying to send a boolean with Volley in an Android App developed with Android Studio.
This is the error that I get in the log:
com.android.volley.VolleyError: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
@Override
protected Map<String, String> getParams() throws AuthFailureError {
Map<String, Boolean> param = new HashMap<>();
Boolean images = getBooleanImage(bitmap);
Log.i("Mynewsam",""+images);
param.put("image",images);
return param;
}