I had a previous question similar to my current problem, and that was when I retrieved null values from my String arrays, now my problem is that I think I'm also getting null values from my integar arrays, but I do not know how to handle such an exception, for example:
for int(i=0;i<n;i++)
{
if(taskArr[i] != null){
taskArr[i] = taskArray[i].getText().toString();
taskId[i] = taskArray[i].getId();
}
}
the if(taskArr[i] != null)
solved my problem for getting null values from my String Array, but it does not seem to working on my integar arrays. taskArr[] is my string array, taskId[] is my integar array and taskArray[] is an edittext array