Initialize Path to null

This value is assigned when the instance is created, so it's guaranteed not to be null when it reaches client code
This commit is contained in:
Oliver Booth 2022-11-30 18:48:40 +00:00
parent 548a5de2be
commit fd52361a5e
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ public sealed class VirtualParadisePathObject : VirtualParadiseObject
/// Gets the path in this object.
/// </summary>
/// <value>The path in this object.</value>
public VirtualParadisePath Path { get; set; }
public VirtualParadisePath Path { get; set; } = null!;
/// <inheritdoc />
protected internal override void ExtractFromOther(VirtualParadiseObject virtualParadiseObject)