mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
check for null to fix NPE.
This commit is contained in:
parent
7a5920e9f2
commit
33c81ec7ec
1 changed files with 15 additions and 13 deletions
|
@ -173,20 +173,22 @@ public class DictLangCache {
|
|||
getInfo( context, name );
|
||||
}
|
||||
|
||||
s_handler.post( new Runnable() {
|
||||
public void run() {
|
||||
if ( null != m_dictsAdapter ) {
|
||||
rebuildAdapter( m_dictsAdapter,
|
||||
DictLangCache.
|
||||
getHaveLang( context,
|
||||
m_adaptedLang ) );
|
||||
if ( null != s_handler ) {
|
||||
s_handler.post( new Runnable() {
|
||||
public void run() {
|
||||
if ( null != m_dictsAdapter ) {
|
||||
rebuildAdapter( m_dictsAdapter,
|
||||
DictLangCache.
|
||||
getHaveLang( context,
|
||||
m_adaptedLang ) );
|
||||
}
|
||||
if ( null != m_langsAdapter ) {
|
||||
rebuildAdapter( m_langsAdapter,
|
||||
DictLangCache.listLangs( context ) );
|
||||
}
|
||||
}
|
||||
if ( null != m_langsAdapter ) {
|
||||
rebuildAdapter( m_langsAdapter,
|
||||
DictLangCache.listLangs( context ) );
|
||||
}
|
||||
}
|
||||
} );
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
private static String[] listLangs( Context context )
|
||||
|
|
Loading…
Add table
Reference in a new issue