evemondevteam / evemon

A lightweight, easy-to-use standalone Windows application designed to assist you in keeping track of your EVE Online character progression.
185 stars 171 forks source link

Object reference not set to an instance of an object. #71

Open wvdvegt opened 7 years ago

wvdvegt commented 7 years ago

Possible fix for: System.NullReferenceException: Object reference not set to an instance of an object. at EVEMon.Controls.NotificationList.MarketOrdersEndedMessage(MarketOrdersNotificationEventArgs ordersNotification) in EVEMon\Controls\NotificationList.cs:line 645

changed statement in MarketOrdersEndedMessage at line 645 of NotificationList.cs into:

builder
   .Append(FormatHelper.Format(order.InitialVolume, Format))
   .Append(" ")
   .Append(order.Item != null ? order.Item.Name : "Unknow")
   .Append(" at ")
   .AppendLine(order.Station != null ? order.Station.Name : "Unkown");
wvdvegt commented 7 years ago

Similar bug in ContractsEndedMessage

Changed MarketOrdersEndedMessage in NotificationList.cs into:

                    builder
                        .Append(" at ")
                        .AppendLine(contract.StartStation.Name != null ? contract.StartStation.Name : "Unknown");