Browse Source

fixed crash at startup if addressbook is disbaled

pull/1791/head
orignal 2 years ago
parent
commit
9abc4cf359
  1. 1
      libi2pd_client/AddressBook.cpp

1
libi2pd_client/AddressBook.cpp

@ -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)

Loading…
Cancel
Save