title: How to avoid "Derefenrecing possible nullpointer" warning
body: <p>I get a "Dereferencing possible null pointer" warning in my IDE for line:</p>
  
  <pre><code>double tmpTermCoeff = tmpTerm.getCoeff();
  </code></pre>
  
  <p>I'm not sure how to solve this warning with the following code. If I replace "null" with "new Term()" it works but feels redundant or wrong since I create it right after in the while loop.</p>
  
  <pre><code>while(!tmpList.isEmpty()){
      Iterator&lt;Term&gt; iter = tmpList.iterator();
  
      Term tmpTerm = null;
      if(iter.hasNext()){
          tmpTerm = new Term(iter.next());
          iter.remove();                
      }
  
      while(iter.hasNext()){
          if(condition){
              double tmpTermCoeff = tmpTerm.getCoeff();
              iter.remove();
          }
      }
      simpleP.addTerm(tmpTerm);
  }
  </code></pre>