title: Unwanted occasional empty item appearing in ListView
body: <p>I have a ListView in which each row is a TextView, and display a line of text. I'm getting a problem where occasionally an unwanted empty row appears. The empty row goes away once list scrolls past that particular area.</p>
  
  <p>I've verified my list rows contain the correct information by using the following code after pausing the app in the debugger. Nothing in the output shows up empty or null, etc.</p>
  
  <pre><code>for (int i = 0; i&lt;list.getChildCount(); i++) { 
  
       System.out.print((TextView) list.getChildAt(i)).getText());
  }
  </code></pre>
  
  <p>This shows the information I expected.</p>
  
  <p>I also checked the data backing my Adapter for empty entries, new lines, etc.</p>
  
  <p>My getView() method inside the Adapter is as follows:</p>
  
  <pre><code>    @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          TextView t;
  
          if (convertView == null) {
              convertView = mInflator.inflate(R.layout.single_message_row, null);
              t = (TextView) convertView;
              t.setMovementMethod(LinkMovementMethod.getInstance());
              t.setTextSize(mMsgSize);
          }
  
          else {
              t = (TextView) convertView;
          }
  
          CharSequence text = get(position);
          t.setText(text);
  
          return t;
      }
  </code></pre>
  
  <p>Below is an image demonstrating the problem (the area in red):</p>
  
  <p><img src="https://i.stack.imgur.com/K6QCe.png" alt="enter image description here"></p>