mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
fix dictname being an empty string early on
Likely because of something in the jni world unset per-player dict name is empty string rather than null, so test for that too. Fixes dicts popup in newly-created game have an empty first line " (in use)".
This commit is contained in:
parent
fd0c5767e6
commit
ffaa232dba
1 changed files with 1 additions and 1 deletions
|
@ -416,7 +416,7 @@ public class CurGameInfo implements Serializable {
|
|||
public String dictName( final LocalPlayer lp )
|
||||
{
|
||||
String dname = lp.dictName;
|
||||
if ( null == dname ) {
|
||||
if ( null == dname || 0 == dname.length() ) {
|
||||
dname = dictName;
|
||||
}
|
||||
return dname;
|
||||
|
|
Loading…
Reference in a new issue