diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java index 64b445fc8..c5870bfad 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java @@ -180,6 +180,7 @@ public class DBUtils { public static String[] getRelayIDNoMsgs( Context context ) { + String[] result = null; initDB( context ); ArrayList ids = new ArrayList(); @@ -207,7 +208,11 @@ public class DBUtils { cursor.close(); db.close(); } - return ids.toArray( new String[ids.size()] ); + + if ( 0 < ids.size() ) { + result = ids.toArray( new String[ids.size()] ); + } + return result; } private static void initDB( Context context )