Skip to content

Handle KeyNotFoundException thrown from DictionaryPropertyProxy and DictionaryTypedPropertyProxy #229

Handle KeyNotFoundException thrown from DictionaryPropertyProxy and DictionaryTypedPropertyProxy

Handle KeyNotFoundException thrown from DictionaryPropertyProxy and DictionaryTypedPropertyProxy #229

Re-run triggered January 13, 2025 19:28
Status Success
Total duration 3m 32s
Artifacts

codeql-analysis.yml

on: pull_request
Matrix: Analyze
Fit to window
Zoom out
Zoom in

Annotations

1 error and 11 warnings
Analyze (csharp)
CodeQL Action major versions v1 and v2 have been deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v3. For more information, see https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated/
Analyze (csharp)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Analyze (csharp): SystemTextJsonPatch/Adapters/ObjectAdapter.cs#L63
Possible null reference argument for parameter 'path' in 'void ObjectAdapter.Add(string path, object? value, object objectToApplyTo, Operation operation)'.
Analyze (csharp): SystemTextJsonPatch/Converters/GenericJsonPatchDocumentConverter.cs#L30
Possible null reference argument for parameter 'operations' in 'JsonPatchDocument<TModel>.JsonPatchDocument(List<Operation<TModel>> operations, JsonSerializerOptions options)'.
Analyze (csharp): SystemTextJsonPatch/Adapters/ObjectAdapter.cs#L83
Possible null reference argument for parameter 'errorMessage' in 'JsonPatchError ObjectAdapter.CreatePathNotFoundError(object target, string path, Operation operation, string errorMessage)'.
Analyze (csharp): SystemTextJsonPatch/Adapters/ObjectAdapter.cs#L88
Dereference of a possibly null reference.
Analyze (csharp): SystemTextJsonPatch/Adapters/ObjectAdapter.cs#L88
Possible null reference argument for parameter 'segment' in 'bool IAdapter.TryAdd(object target, string segment, JsonSerializerOptions options, object? value, out string? errorMessage)'.
Analyze (csharp): SystemTextJsonPatch/Adapters/ObjectAdapter.cs#L90
Possible null reference argument for parameter 'errorMessage' in 'JsonPatchError ObjectAdapter.CreateOperationFailedError(object target, string path, Operation operation, string errorMessage)'.
Analyze (csharp): SystemTextJsonPatch/Adapters/ObjectAdapter.cs#L108
Possible null reference argument for parameter 'path' in 'void ObjectAdapter.Add(string path, object? value, object objectToApplyTo, Operation operation)'.
Analyze (csharp): SystemTextJsonPatch/Converters/JsonPatchDocumentConverter.cs#L36
Possible null reference argument for parameter 'operations' in 'JsonPatchDocument.JsonPatchDocument(List<Operation> operations, JsonSerializerOptions options)'.
Analyze (csharp): SystemTextJsonPatch/Adapters/ObjectAdapter.cs#L135
Possible null reference argument for parameter 'path' in 'JsonPatchError ObjectAdapter.CreatePathNotFoundError(object target, string path, Operation operation, string errorMessage)'.
Analyze (csharp): SystemTextJsonPatch/Adapters/ObjectAdapter.cs#L135
Possible null reference argument for parameter 'errorMessage' in 'JsonPatchError ObjectAdapter.CreatePathNotFoundError(object target, string path, Operation operation, string errorMessage)'.