mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
fix occasional NPE
I can't reproduce it, but occasionally fail to get Loc info for a wordlist while opening. Drop the open rather than crash.
This commit is contained in:
parent
fa7de741eb
commit
141fb29c81
1 changed files with 5 additions and 1 deletions
|
@ -446,6 +446,10 @@ public class DictBrowseDelegate extends ListDelegateBase
|
||||||
{
|
{
|
||||||
DictUtils.DictLoc loc
|
DictUtils.DictLoc loc
|
||||||
= DictUtils.getDictLoc( delegator.getActivity(), name );
|
= DictUtils.getDictLoc( delegator.getActivity(), name );
|
||||||
launch( delegator, name, loc );
|
if ( null == loc ) {
|
||||||
|
DbgUtils.logf( "DictBrowseDelegate.launch(): DictLoc null; try again?" );
|
||||||
|
} else {
|
||||||
|
launch( delegator, name, loc );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue