We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 37a18e6 + 620ebe0 commit f5bba61Copy full SHA for f5bba61
1 file changed
src/nbl/asset/utils/CIESProfileParser.cpp
@@ -17,7 +17,7 @@ bool CIESProfileParser::parse(CIESProfile& result)
17
{
18
auto removeTrailingWhiteChars = [](std::string& str) -> void
19
20
- if (std::isspace(str.back()))
+ if (!str.empty() && std::isspace(static_cast<unsigned char>(str.back())))
21
22
auto it = str.rbegin();
23
while (it != str.rend() && std::isspace(static_cast<unsigned char>(*it)))
0 commit comments