title: Hide group with no child - ExpandableListView
body: <p>I want to hide the whole group from <code>ExpandableListView</code> if it has no child(s). I've tried to use this in the <code>public View getGroupView</code>:</p>
  
  <pre><code>if (getChildrenCount(groupPosition) == 0) {
      convertView.setVisibility(View.INVISIBLE);
      lblListHeader.setVisibility(View.INVISIBLE);
  } else {
      convertView.setVisibility(View.VISIBLE);
      lblListHeader.setVisibility(View.VISIBLE);
  }
  </code></pre>
  
  <p>But that is not working I still see the indicator (the text is removed) and a empty space. </p>
  
  <p>Also I've tried this:</p>
  
  <pre><code>if (getChildrenCount(groupPosition) == 0) {
      convertView = layoutInflater.inflate(R.layout.blank_layout, null);
  }
  </code></pre>
  
  <p>That's working but when I try to open another group I get a <code>java.lang.NullPointerException</code>.</p>
  
  <p>Is it possible to hide group(s) from <code>ExpandableListView</code> if it has no child(s)?</p>