From 5c71efebe67d8705c99b159cc5d9b66ce750f269 Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Fri, 5 Jun 2015 15:23:44 -0700 Subject: [PATCH] Fixed integtests #4584 --- src/lib/client/ServerProxy.cpp | 6 ++++-- src/lib/server/ClientProxy1_5.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/lib/client/ServerProxy.cpp b/src/lib/client/ServerProxy.cpp index e1be8404..ea275e55 100644 --- a/src/lib/client/ServerProxy.cpp +++ b/src/lib/client/ServerProxy.cpp @@ -871,8 +871,10 @@ ServerProxy::fileChunkReceived() m_events->addEvent(Event(m_events->forFile().fileRecieveCompleted(), m_client)); } else if (result == kStart) { - String filename = m_client->getDragFileList().at(0).getFilename(); - LOG((CLOG_NOTIFY "File Transmission Started: Start receiving %s.", filename.c_str())); + if (m_client->getDragFileList().size() > 0) { + String filename = m_client->getDragFileList().at(0).getFilename(); + LOG((CLOG_NOTIFY "File Transmission Started: Start receiving %s.", filename.c_str())); + } } } diff --git a/src/lib/server/ClientProxy1_5.cpp b/src/lib/server/ClientProxy1_5.cpp index 4d04f887..350167d2 100644 --- a/src/lib/server/ClientProxy1_5.cpp +++ b/src/lib/server/ClientProxy1_5.cpp @@ -91,8 +91,10 @@ ClientProxy1_5::fileChunkReceived() m_events->addEvent(Event(m_events->forFile().fileRecieveCompleted(), server)); } else if (result == kStart) { - String filename = server->getFakeDragFileList().at(0).getFilename(); - LOG((CLOG_NOTIFY "File Transmission Started: Start receiving %s.", filename.c_str())); + if (server->getFakeDragFileList().size() > 0) { + String filename = server->getFakeDragFileList().at(0).getFilename(); + LOG((CLOG_NOTIFY "File Transmission Started: Start receiving %s.", filename.c_str())); + } } }