Skip to content

Commit

Permalink
Check m_internals in UnregisterValidationInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
volbil committed Apr 18, 2021
1 parent a0bc05e commit d813f60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/validationinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ void RegisterValidationInterface(CValidationInterface* pwalletIn) {
}

void UnregisterValidationInterface(CValidationInterface* pwalletIn) {
g_signals.m_internals->m_connMainSignals.erase(pwalletIn);
if (g_signals.m_internals) {
g_signals.m_internals->m_connMainSignals.erase(pwalletIn);
}
}

void UnregisterAllValidationInterfaces() {
Expand Down

0 comments on commit d813f60

Please sign in to comment.