diff --git a/SAM.cpp b/SAM.cpp index 8cd811d2..3b5e4d51 100644 --- a/SAM.cpp +++ b/SAM.cpp @@ -359,7 +359,7 @@ namespace stream i2p::data::IdentHash ident; if (name == "ME") SendNamingLookupReply (nullptr); - else if (i2p::data::netdb.GetAddressBook ().GetIdentHash (name, ident)) + else if (m_Session && i2p::data::netdb.GetAddressBook ().GetIdentHash (name, ident)) { auto leaseSet = m_Session->localDestination->FindLeaseSet (ident); if (leaseSet)