From 30b0bf5e6a8811c969a49a61aac5de6526b2562d Mon Sep 17 00:00:00 2001 From: zhangxiaofeng Date: Wed, 11 Oct 2023 09:30:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug=EF=BC=9A=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=9F=A5=E8=AF=A2=E8=88=B1=E5=8D=95=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=88=97=E8=A1=A8=E6=9D=83=E9=99=90=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84null=E5=80=BC=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrder/BookingOrderService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index b59ce21d..2772967c 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -223,7 +223,7 @@ namespace Myshipping.Application } //获取菜单列表权限 List userlist = await _right.GetDataScopeList(MenuConst.MenuBookingOrder); - List userlistString = userlist.Select(u => u.ToString()).ToList(); + List userlistString = userlist?.Select(u => u.ToString())?.ToList(); List pidlist = new List(); if (!string.IsNullOrWhiteSpace(input.SEALNO) || !string.IsNullOrWhiteSpace(input.CNTRNO)) {