break cannot be used outside of a loop or a switch
<pre><code>String value = custom.getdob().toString();
if (value == null || value.equals("")) {
    holder.item3.setText("-");
    break;
}
</code></pre>

<p>I am actually over-riding the method getView, so i am not able to place a <code>return</code> after my if condition as it says view must be returned, but i want to exit the if condition after the check. so tried out <code>break</code> and i am getting this error "<strong>break cannot be used outside of a loop or a switch</strong>"</p>

<pre><code>    break; = &gt; Throws break cannot be used outside of a loop or a switch
    return; = &gt; This method must return a result of type View
</code></pre>
