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:
Eric House 2016-07-29 08:17:31 -07:00
parent fa7de741eb
commit 141fb29c81

View file

@ -446,6 +446,10 @@ public class DictBrowseDelegate extends ListDelegateBase
{
DictUtils.DictLoc loc
= 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 );
}
}
}