mirror of
https://github.com/CyberL1/Minecraft-Realms-Emulator.git
synced 2024-12-21 20:08:21 -05:00
fix(server): updating realm with empty description should work now
This commit is contained in:
parent
f133c237ef
commit
de45bf843e
@ -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()
|
||||
{
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user