]> git.sesse.net Git - casparcg/commitdiff
[AMCP] Fixed access violation
authorHelge Norberg <helge.norberg@svt.se>
Thu, 19 Jan 2017 13:59:21 +0000 (14:59 +0100)
committerHelge Norberg <helge.norberg@svt.se>
Thu, 19 Jan 2017 13:59:21 +0000 (14:59 +0100)
protocol/amcp/AMCPProtocolStrategy.cpp

index 39529a709f3c6380e62298a45495930d28b29b5a..6009b3e930c73199656270718f288ac327ed0ee2 100644 (file)
@@ -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();