title: How to remove null { } map from ArrayList<HashMap<String, String>>?
body: <p>I have a <code>ArrayList&lt;HashMap&lt;String, String&gt;&gt; placesListItems</code>.</p>
  
  <p>When I remove a map from <code>placesListItems</code>, the null map remains. So that my <code>ListAdapter</code> contains null list items.</p>
  
  <pre><code>for (HashMap&lt;String, String&gt; map : placesListItems) {
    for (Entry&lt;String, String&gt; entry : map.entrySet()) {
      for (int j = 0; j &lt; duplicateList.size(); j++) {
        if (entry.getValue().equals(duplicateList.get(j))) {
          Iterator iterator = map.entrySet().iterator();
          while (iterator.hasNext()) {
            Entry&lt;String, String&gt; pairs = (Entry)iterator.next();
            System.out.println(pairs.getKey() + " = " + pairs.getValue());
            iterator.remove(); // avoids a ConcurrentModificationException
          }
        }
      }
    }
  }     
  ListAdapter adapter = new ItemAdapterHome(getApplicationContext, placesListItems);
  lv.setAdapter(adapter); 
  </code></pre>
  
  <p>How can I solve this?</p>