My Asynctask is throwing this error
"Caused by java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.Void[]"
code:
protected Object doInBackground(Void... params) 
on above method for only specific user not for all users.Can any one tell does passing void like "AsyncTask Void,Void,Object" is cause for my problem? below i attach my code
private class RegisterTask extends 
AsyncTask<Void, Void, Object>      
       {
    protected void onPreExecute() {
        super.onPreExecute();
        }
    }
    protected Object doInBackground(Void... params) {
        return null;
    }
    protected void onPostExecute(Object result) {
        super.onPostExecute(result);
    }
}`
 
     
     
    