diff --git a/Minecraft-Realms-Emulator/Modes/External/WorldsController.cs b/Minecraft-Realms-Emulator/Modes/External/WorldsController.cs index bfd665e..a729e3b 100644 --- a/Minecraft-Realms-Emulator/Modes/External/WorldsController.cs +++ b/Minecraft-Realms-Emulator/Modes/External/WorldsController.cs @@ -678,7 +678,7 @@ namespace Minecraft_Realms_Emulator.Modes.External return BadRequest(errorResponse); } - if (body.Description.Length > 32) + if (body.Description?.Length > 32) { ErrorResponse errorResponse = new() { diff --git a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/WorldsController.cs b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/WorldsController.cs index cb21e17..0cafc8d 100644 --- a/Minecraft-Realms-Emulator/Modes/Realms/Controllers/WorldsController.cs +++ b/Minecraft-Realms-Emulator/Modes/Realms/Controllers/WorldsController.cs @@ -731,7 +731,7 @@ namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers return BadRequest(errorResponse); } - if (body.Description.Length > 32) + if (body.Description?.Length > 32) { ErrorResponse errorResponse = new() {