test for null that should never happen but google play says does.

This commit is contained in:
Eric House 2014-01-25 19:03:22 -08:00
parent e9ffcdbbc5
commit b3ebadfde5

View file

@ -288,11 +288,14 @@ public class DictBrowseActivity extends XWListActivity
int position, long id )
{
TextView text = (TextView)view;
int newval = Integer.parseInt( text.getText().toString() );
if ( parent == m_minSpinner ) {
setMinMax( newval, m_browseState.m_maxShown );
} else if ( parent == m_maxSpinner ) {
setMinMax( m_browseState.m_minShown, newval );
// null text seems to have generated at least one google play report
if ( null != text ) {
int newval = Integer.parseInt( text.getText().toString() );
if ( parent == m_minSpinner ) {
setMinMax( newval, m_browseState.m_maxShown );
} else if ( parent == m_maxSpinner ) {
setMinMax( m_browseState.m_minShown, newval );
}
}
}