title: Error while attempting null check
body: <p>I am checking for null before doing a certain operation but I have run into some issues. Following is the code:</p>
  
  <pre><code>if (c != null &amp;&amp; c.size() != null) {
      if (c.size() &gt; 0) {
          return (Application) c.toArray()[0];
  }
  </code></pre>
  
  <p>I am getting a <em>'The operator != is undefined for the argument type(s)int, null'</em> at the point 
   c.size() != null. I understand the return type for the size method is an integer, is that why I am getting this error? Hope someone can advise. Thank you.</p>