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:
Eric House 2013-04-06 08:05:39 -07:00
parent 86b39b8340
commit 51d72447c6

View file

@ -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;
}