1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-26 03:54:16 +00:00

fixed crash at startup if addressbook is disbaled

This commit is contained in:
orignal 2022-08-30 15:18:31 -04:00
parent c54fc7ee44
commit 9abc4cf359

View File

@ -567,6 +567,7 @@ namespace client
void AddressBook::LoadLocal () void AddressBook::LoadLocal ()
{ {
if (!m_Storage) return;
std::map<std::string, std::shared_ptr<Address>> localAddresses; std::map<std::string, std::shared_ptr<Address>> localAddresses;
m_Storage->LoadLocal (localAddresses); m_Storage->LoadLocal (localAddresses);
for (const auto& it: localAddresses) for (const auto& it: localAddresses)