System.NullReferenceException: Object reference not set to an instance of an object. at Careers.WebAPI.Controllers.PositionController.GetPositionByCode(String code, dbCareers dbc) at ECMWebAPI.CustomMiddleware.GetStrByCode(String name, String idd) at ECMWebAPI.CustomMiddleware.GetContentByCode(HttpContext context, String name1, String id) at ECMWebAPI.CustomMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context) HEADERS ======= Accept: */* Host: www.careers.philips.com.cn User-Agent: claudebot X-Forwarded-For: 3.133.131.168 X-Forwarded-Cluster: waf, EagleEye-TraceId: ac11000117134582670808278e003d eagleeye-rpcid: 0.1 X-Real-IP: 3.133.131.168 X-True-IP: 3.133.131.168 X-Client-IP: 3.133.131.168 Web-Server-Type: nginx WL-Proxy-Client-IP: 3.133.131.168 X-Forwarded-Proto: https X-Sinfo: on x5-uuid: 42d99559786d87c5cf214265ef251432