Commit 024b8fd7 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[FIX] - tokenizer crashed on windows if results where empty. Fixed.

parent 16efec06
......@@ -78,7 +78,7 @@ std::vector< std::string > string_utils::tokenize( const std::string& source,
compression = ba::token_compress_off;
}
ba::split( result, source, ba::is_any_of( delim ), compression );
if( result.back() == "" )
if( !result.empty() && result.back() == "" )
{
result.pop_back();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment