issue while iterating the records
<p>I have a table ggg which contain different coulums as shown below</p>

<pre><code>AAAA   BBBB    CCCC      
----   ----    ----      
FDFD   fghj    null  
WDWD   dwww    null 
DWDS   dree    null 
DSDS   null    4556
DSDS   dfgh    null
</code></pre>

<p>As shown in the above table I am getting all the rows in an object , object t
and I am using the methods like t.getBBBB() and t.getCCCC() , Now i am iterating over he object t storing it contents in an arraylist with advanced for loop now please advise i have to perform the logic where the value of the column BBBB is null and 
value of column CCCC is 4556</p>

<p>I am doing like this</p>

<pre><code>if (t.getBBBB().equals(null) &amp;&amp; t.getCCCC().equals(4556)
{}
</code></pre>

<p>but the issue is that as a i am iterating all this in advance for loop so the first rows come before this having the value other so it throws the exception please advise how to proceed </p>
