Minecraft-Console-Client/MinecraftClient
copilot-swe-agent[bot] d2c1cbf2a5 Fix Json.ParseJson crash on empty/null input
ParseJson now returns null for null, empty, or whitespace-only input
instead of throwing JsonReaderException. This matches the behavior of
the old hand-rolled parser and is needed because MC protocol packets
may contain empty strings where JSON text is expected (e.g. empty chat
messages in DeathCombatEvent packets).

Discovered during end-to-end testing against a Minecraft 1.21.11
protocol server.

Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/milutinke/Minecraft-Console-Client/sessions/34df723e-4a63-45a0-a942-e119d81a575b
2026-03-22 17:22:08 +00:00
..
ChatBots Tested the client against 1.21.11 on .net 10. Created a integration testing skill (end-to-end). 2026-03-21 21:02:13 +01:00
CommandHandler [skip ci] Miscellaneous scripting QoL improvements and fixes (#2740) 2024-06-22 06:40:23 +08:00
Commands feat: add MC 1.21.5 (protocol 770) support 2026-03-21 00:48:27 +08:00
config Replace legacy custom JSON parser with System.Text.Json 2026-03-22 16:39:26 +00:00
Crypto Trim 2023-01-14 21:07:09 +08:00
Inventory feat: add 26.1 palette files and new enum values 2026-03-22 20:04:08 +08:00
Logger Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
Mapping Replace legacy custom JSON parser with System.Text.Json 2026-03-22 16:39:26 +00:00
Physics fix: correct global state indexing in block shape processing 2026-03-22 16:34:12 +08:00
Properties Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
Protocol Address code review feedback 2026-03-22 16:46:33 +00:00
Proxy Tooltip support & Bug fix 2022-12-11 13:00:19 +08:00
Resources add Yggdrasil authlib multi-user selection. 2024-08-11 01:43:46 +08:00
Scripting Replace legacy custom JSON parser with System.Text.Json 2026-03-22 16:39:26 +00:00
WinAPI Bug fix 2022-10-10 10:56:12 +08:00
AutoTimeout.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
ColorHelper.cs legacy color support 2022-12-14 14:45:51 +08:00
Command.cs Bug fix 2022-12-11 16:30:45 +08:00
ConsoleIO.cs fixed typo in word heAlper lol 2024-04-16 21:21:08 +03:00
ExtensionMethods.cs Better translation 2022-10-17 20:00:33 +08:00
FileMonitor.cs Remove color code from text 2022-11-30 16:08:55 +08:00
INIFile.cs [skip ci] Normalize all line endings 2023-09-15 14:44:11 +08:00
Json.cs Fix Json.ParseJson crash on empty/null input 2026-03-22 17:22:08 +00:00
McClient.cs feat: implement physics engine for player movement and collision detection 2026-03-22 15:29:22 +08:00
MinecraftClient.csproj feat: implement physics engine for player movement and collision detection 2026-03-22 15:29:22 +08:00
Program.cs feat: add 26.1 packet palette, structured components registry, and version routing 2026-03-22 20:04:08 +08:00
Settings.cs Merge pull request #2781 from a08381/authlib-multi-user 2026-03-22 16:36:20 +01:00
TaskWithDelay.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
TaskWithResult.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
UpgradeHelper.cs Make UpgradeHelper compliant with .NET RID catalog 2023-03-29 20:15:22 +08:00