Skip to content

Commit

Permalink
Null protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkael committed Aug 20, 2021
1 parent 2360d9f commit c0a7ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JournalMonitor/JournalMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2174,7 +2174,7 @@ Killer parseKiller(IDictionary<string, object> killerData, bool singleKiller)
StarSystem system = EDDI.Instance?.CurrentStarSystem;
Body body = null;

if (bodyName.EndsWith(" Ring"))
if (system != null && bodyName.EndsWith(" Ring"))
{
// We've mapped a ring.
Ring ring = null;
Expand Down

0 comments on commit c0a7ac4

Please sign in to comment.