How do you delete null objects (not values) from a list
<p>I have objects of a class Choice which are in a list.</p>

<p>Choice looks like this.</p>

<pre><code>public class Choice extends MorphiaModel{   
    public String name;
    public Double price;
}
</code></pre>

<p>Some of them are empty, that is name is "" and price is null.</p>

<p>I want to remove these empty values.</p>

<p>I tried iterating over the list and removing them empty Choice objects, but I got a ConcurrentModificationException then I did this (after implementing equals and hashcode), but it doesn't work, the empty values are still there.</p>

<p>Note: option.choices is a list of Choice objects</p>

<pre><code>Choice emptyChoice = new Choice();
    emptyChoice.name = "";
    emptyChoice.price = null;

    option.choices.remove(emptyChoice);
</code></pre>
