1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-11 14:47:11 +00:00

Debug improvement

This commit is contained in:
M66B 2024-10-19 09:49:22 +02:00
parent 8027626bab
commit 2b162efdfb

View file

@ -2356,7 +2356,12 @@ public class Helper {
// https://issuetracker.google.com/issues/37054851
static String getPrintableString(String value, boolean debug) {
if (TextUtils.isEmpty(value))
if (debug) {
if (value == null)
return "<null>";
if (TextUtils.isEmpty(value))
return "<empty>";
} else
return value;
StringBuilder result = new StringBuilder();
for (int i = 0; i < value.length(); ) {