From: Helge Norberg Date: Thu, 19 Jan 2017 13:59:21 +0000 (+0100) Subject: [AMCP] Fixed access violation X-Git-Tag: 2.1.0_Beta2~125 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a02b0055bb7bea13575c784eb10a14d8e9f452dc;p=casparcg [AMCP] Fixed access violation --- 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();