From 29328e6412114ea9e81c88d6e853570b728c3b32 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 6 Sep 2020 17:55:47 -0700 Subject: [PATCH] fix NPE in logging --- .../app/src/main/java/org/eehouse/android/xw4/DbgUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DbgUtils.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DbgUtils.java index 4c7777468..bc5acf7f5 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DbgUtils.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DbgUtils.java @@ -127,7 +127,7 @@ public class DbgUtils { List strs = new ArrayList<>(); if ( null != params ) { for ( Object obj : params ) { - strs.add( obj.toString() ); + strs.add( String.format( "%s", obj ) ); } } return TextUtils.join( ", ", strs );