mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
fix crash when wordlist winds up in downloads dir (for reasons I don't
understand: I can't reproduce the crash but for at least one correspondent it happens every time.)
This commit is contained in:
parent
86b39b8340
commit
51d72447c6
1 changed files with 9 additions and 0 deletions
|
@ -203,6 +203,15 @@ public class DictUtils {
|
|||
}
|
||||
}
|
||||
|
||||
if ( null == loc ) {
|
||||
File file = getDownloadsPathFor( context, name );
|
||||
if ( null != file && file.exists() ) {
|
||||
loc = DictLoc.DOWNLOAD;
|
||||
}
|
||||
}
|
||||
|
||||
// DbgUtils.logf( "getDictLoc(%s)=>%h(%s)", name, loc,
|
||||
// ((null != loc)?loc.toString():"UNKNOWN") );
|
||||
return loc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue