fix(assets): safeguard against null InstrumentCategory during ETF/Fund scans
This commit is contained in:
@@ -27,7 +27,13 @@ public record TradeRepublicAsset
|
||||
[JsonPropertyName("isin")] public string Isin { get; init; } = "";
|
||||
[JsonPropertyName("name")] public string Name { get; init; } = "";
|
||||
[JsonPropertyName("type")] public string Type { get; init; } = "";
|
||||
[JsonPropertyName("instrumentCategory")] public string InstrumentCategory { get; init; } = "";
|
||||
private readonly string _instrumentCategory = "";
|
||||
[JsonPropertyName("instrumentCategory")]
|
||||
public string InstrumentCategory
|
||||
{
|
||||
get => _instrumentCategory;
|
||||
init => _instrumentCategory = value ?? "";
|
||||
}
|
||||
[JsonPropertyName("hasCfd")] public bool HasCfd { get; init; }
|
||||
[JsonPropertyName("imageId")] public string? ImageId { get; init; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user