From e78ccc6bec772b976e1031c4bc14428f7b73d90d Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 11 Oct 2016 07:31:16 -0400 Subject: [PATCH] fixed #651. check is destination is set --- BOB.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/BOB.cpp b/BOB.cpp index 8ffffba6..fc49749f 100644 --- a/BOB.cpp +++ b/BOB.cpp @@ -568,10 +568,15 @@ namespace client { std::stringstream s; s << "DATA"; s << " NICKNAME: "; s << m_Nickname; - if (m_CurrentDestination->GetLocalDestination ()->IsReady ()) - s << " STARTING: false RUNNING: true STOPPING: false"; + if (m_CurrentDestination) + { + if (m_CurrentDestination->GetLocalDestination ()->IsReady ()) + s << " STARTING: false RUNNING: true STOPPING: false"; + else + s << " STARTING: true RUNNING: false STOPPING: false"; + } else - s << " STARTING: true RUNNING: false STOPPING: false"; + s << " STARTING: false RUNNING: false STOPPING: false"; s << " KEYS: true"; s << " QUIET: "; s << (m_IsQuiet ? "true":"false"); if (m_InPort) {