From 4e021d3b3e95a8585cbaad8cc6b227d632d65a8b Mon Sep 17 00:00:00 2001
From: Him188 <Him188@mamoe.net>
Date: Wed, 1 Sep 2021 19:28:48 +0800
Subject: [PATCH] Fix cache service failure caused by users named "null"

---
 mirai-core/src/commonMain/kotlin/network/ContactListCache.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mirai-core/src/commonMain/kotlin/network/ContactListCache.kt b/mirai-core/src/commonMain/kotlin/network/ContactListCache.kt
index a3a897f60..935c27e69 100644
--- a/mirai-core/src/commonMain/kotlin/network/ContactListCache.kt
+++ b/mirai-core/src/commonMain/kotlin/network/ContactListCache.kt
@@ -29,7 +29,7 @@ import java.util.concurrent.ConcurrentLinkedQueue
 internal val JsonForCache = Json {
     encodeDefaults = true
     ignoreUnknownKeys = true
-    isLenient = true
+//    isLenient = true // "null" will become null and cause errors
     prettyPrint = true
 }