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())); + } } }