diff --git a/ProjectLighthouse/Controllers/SearchController.cs b/ProjectLighthouse/Controllers/SearchController.cs index adaced48..823a89cf 100644 --- a/ProjectLighthouse/Controllers/SearchController.cs +++ b/ProjectLighthouse/Controllers/SearchController.cs @@ -18,6 +18,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers { [HttpGet("slots/search")] public async Task SearchSlots([FromQuery] string query) { + if(query == null) return this.BadRequest(); query = query.ToLower(); string[] keywords = query.Split(" ");