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: 18.191.21.86 X-Forwarded-Cluster: waf, EagleEye-TraceId: ac11000117134577592164362e0039 eagleeye-rpcid: 0.1 X-Real-IP: 18.191.21.86 X-True-IP: 18.191.21.86 X-Client-IP: 18.191.21.86 Web-Server-Type: nginx WL-Proxy-Client-IP: 18.191.21.86 X-Forwarded-Proto: https X-Sinfo: on x5-uuid: fc36043ac550c90ff9fe453cf144f937