mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
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:
parent
352d87a327
commit
b0cf3a795c
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue