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:
Eric House 2018-01-23 21:14:27 -08:00
parent fd0c5767e6
commit ffaa232dba

View file

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