Fix crash handler content processing code

This commit is contained in:
JeremyStar™ 2024-06-10 18:36:31 +02:00
parent 5d16c3b862
commit d3acaaf075
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -184,7 +184,11 @@ public final class CrashHandler {
if (!content.isEmpty())
content.append("\n");
if (map.get(key) instanceof String) {
if (map.get(key) == null) {
if (indentationSize == 0) content.append("\n");
else content.append(" ".repeat(indentationSize)).append("-> ");
content.append(key);
} else if (map.get(key) instanceof String) {
if (indentationSize == 0) content.append("\n");
else content.append(" ".repeat(indentationSize)).append("-> ");
content.append(key).append(": ").append(map.get(key));