Skip to content

Commit

Permalink
Merge pull request #2500 from jamescowens/fix_negative_beacon_time_to…
Browse files Browse the repository at this point in the history
…_expire_2

gui: Add missing null pointer check for m_beacon
  • Loading branch information
jamescowens authored Apr 25, 2022
2 parents 06b4cba + 7beaf8f commit b4d2290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/researcher/researchermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ bool ResearcherModel::hasRenewableBeacon() const

bool ResearcherModel::beaconExpired() const
{
return m_beacon->Expired(GetAdjustedTime());
return m_beacon && m_beacon->Expired(GetAdjustedTime());
}

bool ResearcherModel::hasMagnitude() const
Expand Down

0 comments on commit b4d2290

Please sign in to comment.