mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-11 08:48:06 +01:00
fix NPE
Needed to init globals first
This commit is contained in:
parent
3d1ec565b0
commit
dd8e7584e6
1 changed files with 3 additions and 0 deletions
|
@ -247,6 +247,9 @@ public class DictLangCache {
|
||||||
{
|
{
|
||||||
ArrayList<DictAndLoc> al = new ArrayList<>();
|
ArrayList<DictAndLoc> al = new ArrayList<>();
|
||||||
DictAndLoc[] dals = DictUtils.dictList( context );
|
DictAndLoc[] dals = DictUtils.dictList( context );
|
||||||
|
|
||||||
|
getLangNames( context ); /* inits s_langNames */
|
||||||
|
|
||||||
for ( DictAndLoc dal : dals ) {
|
for ( DictAndLoc dal : dals ) {
|
||||||
DictInfo info = getInfo( context, dal );
|
DictInfo info = getInfo( context, dal );
|
||||||
int langCode = info.langCode;
|
int langCode = info.langCode;
|
||||||
|
|
Loading…
Add table
Reference in a new issue