Why is this line of code giving me an error?
<p>I am trying to loop through a vectors elements and trying to find out if a position in the vector is equal to null...</p>

<pre><code>if(_vecForShapes.get(i)!=null)//this line works fine but when it gets to a position where        it is null it gives me an error? Any ideas?
{

}
</code></pre>

<p>Thanks!</p>
