I am trying to get past a null element in an array of String elements in Java. How do I do it. My code looks like this:

```
if(list[pos] != null){
    for(int i = 0; i < list[pos].length(); i++){
        if(list[pos].charAt(i) == 'a' || list[pos].charAt(i) == 'e' || 
           list[pos].charAt(i) == 'i' || list[pos].charAt(i) == 'o' ||
           list[pos].charAt(i) == 'u')
            count++;
    }
}

```