fix NPE by inspection

fix crash reported by user. Looks like a race on the way out so check
for null first.
This commit is contained in:
Eric House 2018-07-18 22:26:26 -07:00
parent 352d87a327
commit b0cf3a795c

View file

@ -279,7 +279,7 @@ public class DictBrowseDelegate extends DelegateBase
{ {
TextView text = (TextView)view; TextView text = (TextView)view;
// null text seems to have generated at least one google play report // null text seems to have generated at least one google play report
if ( null != text ) { if ( null != text && null != m_browseState ) {
int newval = Integer.parseInt( text.getText().toString() ); int newval = Integer.parseInt( text.getText().toString() );
switch ( parent.getId() ) { switch ( parent.getId() ) {
case R.id.wordlen_min: case R.id.wordlen_min: