From e3e07028134451471fac350a114bf766e428259a Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 11 Jan 2015 17:40:11 -0500 Subject: [PATCH] fxied crash at startup --- NetDb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ()) {