From 088caee4f25106587358948fe166468fc888e72a Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 13 May 2022 22:06:16 -0700 Subject: [PATCH] use opt instead of get If I'd done that before I could stop the current false-upgrade problem server-side.... --- .../src/main/java/org/eehouse/android/xw4/DictsDelegate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictsDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictsDelegate.java index 66b7dca70..60db73fb9 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictsDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictsDelegate.java @@ -1483,7 +1483,7 @@ public class DictsDelegate extends ListDelegateBase if ( DictLangCache.haveDict( m_activity, localLangName, name )){ boolean matches = true; - JSONArray sums = dict.getJSONArray("md5sums"); + JSONArray sums = dict.optJSONArray("md5sums"); if ( null != sums ) { matches = false; String[] curSums = DictLangCache.getDictMD5Sums( m_activity, name );