mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 15:07:03 +01:00
Fix GetId MoveJob reads NullReferenceException
This commit is contained in:
@@ -400,7 +400,7 @@ namespace Tgstation.Server.Host.Controllers
|
||||
return Forbid();
|
||||
|
||||
var api = instance.ToApi();
|
||||
api.MoveJob = (await moveJobTask.ConfigureAwait(false)).ToApi();
|
||||
api.MoveJob = (await moveJobTask.ConfigureAwait(false))?.ToApi();
|
||||
return Json(api);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user