github / github/codeql

LGTM.com - false positive - Variable ... may be null - C#

Đang mở
#2,785 1 bình luận 0 reaction 1 người được giao Được @calumgrant nhận Xem trên GitHub
C# false-positive
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

**Description of the false positive**

The alert is generated from the following snippet:
```csharp
EnsureArg.IsNotNull(bundleConfiguration?.Value, nameof(bundleConfiguration));
// ...
_bundleConfiguration = bundleConfiguration.Value;
```

`EnsureArg` is a third party library used to check arguments. Here, because of the null-conditional, `bundleConfiguration` and `bundleConfiguration.Value` are guarded against nulls in this case.

https://lgtm.com/projects/g/microsoft/fhir-server/snapshot/5a4188bc14abc65f5509d1aea5d5cf87648a85a3/files/src/Microsoft.Health.Fhir.Shared.Api/Features/Resources/Bundle/BundleHandler.cs?sort=name&dir=ASC&mode=heatmap#x6213a27b1dff5ecf:1

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.