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:
parent
c54fc7ee44
commit
9abc4cf359
@ -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…
x
Reference in New Issue
Block a user