Minecraft-Console-Client/MinecraftClient
NicoleDyson 1bc57399c8 Fix NullReferenceException in StartConsoleSession when running with BasicIO
In headless/BasicIO mode, ConsoleIO.Backend remains null because
ClassicConsoleBackend is never initialized. StartConsoleSession()
must guard against a null backend to avoid crashing right after
a successful server join.

Without this fix, BasicIO mode (used for unattended / batch
automation with CREATE_NO_WINDOW) crashes with:

  NullReferenceException: Object reference not set to an instance of an object.
  at MinecraftClient.McClient.StartConsoleSession()

The fix adds an early return when ConsoleIO.Backend is null,
which is safe because BasicIO mode does not need interactive
console input handling at all.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 21:27:52 +08:00
..
ChatBots feat: modernize ReplayCapture 2026-05-04 11:49:44 +02:00
CommandHandler Modernize data carriers to records and add primary constructors 2026-03-24 01:31:17 +00:00
Commands Implement console chat visibility controls 2026-05-04 11:17:45 +00:00
config Optimized World.cs 2026-03-25 23:57:02 +01:00
Crypto Fix warnings 2026-04-06 20:36:12 +08:00
Inventory Complete 1.13-1.14 item palettes 2026-05-02 19:22:08 +02:00
Logger Polish console chat visibility implementation 2026-05-04 11:36:01 +00:00
Mapping fix: guard sky-limit block updates 2026-05-06 20:31:28 +00:00
Mcp Bugfixes to the Looking and Movement. Added General prompt engineer. 2026-04-03 19:54:26 +02:00
Physics More minor optimizations 2026-03-26 18:01:56 +01:00
Properties Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
Protocol Fixed shulker crashing on 26.1 (Structured Components) 2026-05-07 19:57:23 +02:00
Proxy Tooltip support & Bug fix 2022-12-11 13:00:19 +08:00
Resources feat: discover forge translation mod sources 2026-05-04 20:11:43 +00:00
Scripting Fix legacy Farmer placement support 2026-05-03 15:46:16 +02:00
TabList Added a /tab command 2026-04-04 16:17:49 +02:00
Tui Polish console chat visibility implementation 2026-05-04 11:36:01 +00:00
WinAPI Fix warnings 2026-04-06 20:36:12 +08:00
Achievement.cs Implement unified achievements feature: data model, protocol handling, state management, ChatBot API, and /achievement command 2026-03-29 20:22:31 +00:00
AutoTimeout.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
ClassicConsoleBackend.cs Implement console chat visibility controls 2026-05-04 11:17:45 +00:00
ColorHelper.cs refactor: simplify color handling in ClassicConsoleBackend 2026-04-08 02:05:26 +08:00
Command.cs Bug fix 2022-12-11 16:30:45 +08:00
ConsoleIO.cs Polish console chat visibility implementation 2026-05-04 11:36:01 +00:00
ExtensionMethods.cs Better translation 2022-10-17 20:00:33 +08:00
FileMonitor.cs refactor: convert == null / != null to is null / is not null in 31 files 2026-03-24 00:42:59 +00:00
IConsoleBackend.cs Implement console chat visibility controls 2026-05-04 11:17:45 +00:00
INIFile.cs [skip ci] Normalize all line endings 2023-09-15 14:44:11 +08:00
Json.cs Fixed a JSON exception 2026-03-26 19:16:48 +01:00
LegacyAchievementCatalog.cs Fix legacy achievements and add test harness 2026-03-30 17:25:08 +02:00
McClient.cs Fix NullReferenceException in StartConsoleSession when running with BasicIO 2026-05-18 21:27:52 +08:00
MinecraftClient.csproj chore: update ModelContextProtocol package version to 1.2.0 and adjust Consolonia and Sentry package versions 2026-04-12 18:46:57 +08:00
Program.cs refactor: simplify color handling in ClassicConsoleBackend 2026-04-08 02:05:26 +08:00
RecipeBookRecipeEntry.cs fix: support 1.21.11 recipe book display ids 2026-03-29 18:45:14 +00:00
Settings.cs feat: discover forge translation mod sources 2026-05-04 20:11:43 +00:00
TaskWithDelay.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
TaskWithResult.cs Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00
UpgradeHelper.cs Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00