diff --git a/NetDb.cpp b/NetDb.cpp index dc68bc22..85589700 100644 --- a/NetDb.cpp +++ b/NetDb.cpp @@ -478,8 +478,8 @@ namespace data if (num > 0) { auto pool = i2p::tunnel::tunnels.GetExploratoryPool (); - auto outbound = pool->GetNextOutboundTunnel (); - auto inbound = pool->GetNextInboundTunnel (); + auto outbound = pool ? pool->GetNextOutboundTunnel () : nullptr; + auto inbound = pool ? pool->GetNextInboundTunnel () : nullptr; std::vector msgs; if (!dest->IsExploratory ()) {