I have a code like this in my project:
public class MyExpAdapter extends BaseExpandableListAdapter
{
@Override
public int getChildrenCount(final int groupPosition)
{
return this.getCountry(groupPosition) == null ? 0 :
this.getCountry(groupPosition).getCityList() == null ? 0 :
this.getCountry(groupPosition).getCityList().size();
}
.
.
.
}
Although I'm checking null probability, inspector is still highlighting last two lines as displayed in image below. Any idea? thanks.
Update
I even changed my method in a way to not use ternary operator however it still sucks :(