From a02b0055bb7bea13575c784eb10a14d8e9f452dc Mon Sep 17 00:00:00 2001 From: Helge Norberg Date: Thu, 19 Jan 2017 14:59:21 +0100 Subject: [PATCH] [AMCP] Fixed access violation --- protocol/amcp/AMCPProtocolStrategy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/amcp/AMCPProtocolStrategy.cpp b/protocol/amcp/AMCPProtocolStrategy.cpp index 39529a709..6009b3e93 100644 --- a/protocol/amcp/AMCPProtocolStrategy.cpp +++ b/protocol/amcp/AMCPProtocolStrategy.cpp @@ -159,7 +159,7 @@ private: std::wstring request_id; - if (boost::iequals(tokens.front(), L"REQ")) + if (!tokens.empty() && boost::iequals(tokens.front(), L"REQ")) { tokens.pop_front(); -- 2.39.2