{"id":"1cf307d89b08dca8","repo":"serilog/serilog","slug":"value-cannot-be-null-parameter-property-1cf307","errorCode":null,"errorMessage":"Value cannot be null. (Parameter 'property')","messagePattern":"Value cannot be null\\. \\(Parameter 'property'\\)","errorType":"validation","errorClass":"ArgumentNullException","httpStatus":null,"severity":"error","filePath":"src/Serilog/Events/LogEventProperty.cs","lineNumber":46,"sourceCode":"    /// <exception cref=\"ArgumentException\">When <paramref name=\"name\"/> is empty or only contains whitespace</exception>\n    /// <exception cref=\"ArgumentNullException\">When <paramref name=\"value\"/> is <code>null</code></exception>\n    public LogEventProperty(string name, LogEventPropertyValue value)\n    {\n        Guard.AgainstNull(value);\n        EnsureValidName(name);\n\n        Name = name;\n        Value = value;\n    }\n\n    /// <summary>\n    /// Construct a <see cref=\"LogEventProperty\"/> from an existing <see cref=\"EventProperty\"/> instance.\n    /// </summary>\n    /// <param name=\"property\">The existing property.</param>\n    /// <exception cref=\"ArgumentNullException\">When <paramref name=\"property\"/> is <code>default</code></exception>\n    internal LogEventProperty(EventProperty property)\n    {\n        if (property.Equals(EventProperty.None)) throw new ArgumentNullException(nameof(property));\n\n        Name = property.Name;\n        Value = property.Value;\n    }\n\n    /// <summary>\n    /// The name of the property.\n    /// </summary>\n    public string Name { get; }\n\n    /// <summary>\n    /// The value of the property.\n    /// </summary>\n    public LogEventPropertyValue Value { get; }\n\n    /// <summary>\n    /// Test <paramref name=\"name\" /> to determine if it is a valid property name.\n    /// </summary>","sourceCodeStart":28,"sourceCodeEnd":64,"githubUrl":"https://github.com/serilog/serilog/blob/49b5339ce85385dc52d4d8e8f2b8308becf23506/src/Serilog/Events/LogEventProperty.cs#L28-L64","documentation":"Error \"Value cannot be null. (Parameter 'property')\" thrown in serilog/serilog.","triggerScenarios":"Thrown at src/Serilog/Events/LogEventProperty.cs:46 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"49b5339ce85385dc52d4d8e8f2b8308becf23506","analyzedAt":"2026-08-04T15:52:35.488Z","schemaVersion":2}