Not sure why I am getting java.lang.NullPointerException
<p>I have no idea how this is happening.  Last night it worked fine:</p>

<p>My logger on the server reads:</p>

<p>Form Array length  2</p>

<p>Fields= 2</p>

<p>so why am I getting a null if there is a size and length > 1 in the array and list??????</p>

<p>Please help...thanx</p>

<p>Form:</p>

<pre><code>  public String[] getFields() 
{ 
    return fields; 
}
public void setFields(String[] s) 
{ 
    fields = s; 
    System.out.println("Form Array length " + s.length);    
}



 String[] formFields = form.getFields(); 


        List&lt;Bean&gt; fields = new ArrayList&lt;Bean&gt;();
        for( String fName : formFields )
        {
            fields.add( BeanCache.fetchFromCache(Bean.class,name) );
        }
        System.out.println("Fields= " + fields.size() );


 for( bean f : fields ) 
        {
           System.out.println("Name = " + f.getName() );  &lt;&lt;-- NULL ERROR HERE???
        }
</code></pre>
