Skip to content

Commit

Permalink
Fix Rollbar# 19511 - Linq select exception due to null value
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkael committed Nov 26, 2020
1 parent cefa840 commit 9ec07fa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CompanionAppService/Profile.cs
Expand Up @@ -70,19 +70,19 @@ public class ProfileStation
public List<KeyValuePair<string, string>> stationServices { get; set; } = new List<KeyValuePair<string, string>>();

/// <summary>What are the economies at the station, with proportions for each</summary>
public List<ProfileEconomyShare> economyShares { get; set; }
public List<ProfileEconomyShare> economyShares { get; set; } = new List<ProfileEconomyShare>();

/// <summary>Commodity market quotes as-received from the profile</summary>
public List<MarketInfoItem> eddnCommodityMarketQuotes { get; set; }
public List<MarketInfoItem> eddnCommodityMarketQuotes { get; set; } = new List<MarketInfoItem>();

/// <summary>Prohibited commodities as-received from the profile</summary>
public List<KeyValuePair<long, string>> prohibitedCommodities { get; set; }
public List<KeyValuePair<long, string>> prohibitedCommodities { get; set; } = new List<KeyValuePair<long, string>>();

/// <summary>Outfitting modules as-received from the profile</summary>
public List<OutfittingInfoItem> outfitting { get; set; }
public List<OutfittingInfoItem> outfitting { get; set; } = new List<OutfittingInfoItem>();

/// <summary>Ship models as-received from the profile</summary>
public List<ShipyardInfoItem> ships { get; set; }
public List<ShipyardInfoItem> ships { get; set; } = new List<ShipyardInfoItem>();

/// <summary>The market JSON object</summary>
public JObject json { get; set; }
Expand Down

0 comments on commit 9ec07fa

Please sign in to comment.