if(jsonArray.getJSONObject(i).get("SECNO").toString()!=null && jsonArray.getJSONObject(i).get("SECNO").toString().trim()!="")
                        appointment.mSecNo =Integer.parseInt(jsonArray.getJSONObject(i).get("SECNO").toString());
                    else
                        appointment.mSecNo = -1;
In the previouse lines, when the value of jsonArray.getJSONObject(i).get("SECNO").toString() equales to '' it doesn't be caught by the if statement ..
and I get this error message .. can't parse '' to integer 
 
     
     
     
    