Skip to content

Commit

Permalink
Fix potential crash when the character is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoeppner committed Dec 23, 2022
1 parent 5734d3f commit 85575ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EVEMon/Controls/OverviewItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ private void UpdateContent()
m_hasSkillQueueTrainingTime = false;
}

var boosterDuration = ccpCharacter.SkillQueue.BoosterDuration;
var boosterDuration = ccpCharacter?.SkillQueue.BoosterDuration ?? TimeSpan.Zero;

if (boosterDuration > TimeSpan.Zero)
{
Expand Down

0 comments on commit 85575ba

Please sign in to comment.