From ffaa232dba0f7498b79d59e0e002bc689e742b68 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 23 Jan 2018 21:14:27 -0800 Subject: [PATCH] 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)". --- .../src/main/java/org/eehouse/android/xw4/jni/CurGameInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/jni/CurGameInfo.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/jni/CurGameInfo.java index 88c6ec97b..4d9b2d8f1 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/jni/CurGameInfo.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/jni/CurGameInfo.java @@ -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;