fix(server): updating realm with empty description should work now

This commit is contained in:
CyberL1 2024-07-14 21:07:49 +02:00
parent f133c237ef
commit de45bf843e
2 changed files with 2 additions and 2 deletions

View File

@ -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()
{

View File

@ -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()
{