mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34: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 )
|
public String dictName( final LocalPlayer lp )
|
||||||
{
|
{
|
||||||
String dname = lp.dictName;
|
String dname = lp.dictName;
|
||||||
if ( null == dname ) {
|
if ( null == dname || 0 == dname.length() ) {
|
||||||
dname = dictName;
|
dname = dictName;
|
||||||
}
|
}
|
||||||
return dname;
|
return dname;
|
||||||
|
|
Loading…
Add table
Reference in a new issue