Array of Char = Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
<p>This is my method</p>

<pre><code>private char[] listFindChar;
public void setlistFindChar(char letter){

int pos;
if (listFindChar !=null)
        {

            pos = listFindChar.length;
            pos ++;
            listFindChar[pos]=letter; 
        }
else{
  listFindChar[0] = letter; (cause problem)

}
</code></pre>

<p>Why the char is not add in the array of chars at the position[0]??</p>

<p>Thanks for helping me!!</p>

<p>Frank</p>
