From f9fc1e8ccf95bc76f20b7bd1bb49044512f8db14 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 10 Jan 2025 20:55:52 +0100 Subject: [PATCH] Fix NPE in EnvironmentCrashCategory during crash --- .../logging/crashcategory/EnvironmentCrashCategory.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/main/kotlin/de/staropensource/engine/base/implementation/logging/crashcategory/EnvironmentCrashCategory.kt b/base/src/main/kotlin/de/staropensource/engine/base/implementation/logging/crashcategory/EnvironmentCrashCategory.kt index 6a6ab4e..e423f82 100644 --- a/base/src/main/kotlin/de/staropensource/engine/base/implementation/logging/crashcategory/EnvironmentCrashCategory.kt +++ b/base/src/main/kotlin/de/staropensource/engine/base/implementation/logging/crashcategory/EnvironmentCrashCategory.kt @@ -63,7 +63,7 @@ class EnvironmentCrashCategory private constructor() : CrashCategory { throwable: Throwable?, fatal: Boolean, ): LinkedHashMap { - if (Environment.getOperatingSystem() == null) + if (Environment.getBitness() == null) return linkedMapOf( Pair("Not available.", null) )