Prevent warnings about invalid UUIDs caused by invalid RLV commands produced by MoDesign Collar (and maybe others as well)

master
Ansariel 2016-09-21 18:10:26 +02:00
parent 78b47d0d15
commit 79aca1f0ed
1 changed files with 5 additions and 0 deletions

View File

@ -610,6 +610,11 @@ bool RlvCommand::parseCommand(const std::string& strCommand, std::string& strBeh
template<>
bool RlvCommandOptionHelper::parseOption<LLUUID>(const std::string& strOption, LLUUID& idOption)
{
if (!LLUUID::validate(strOption))
{
return false;
}
idOption.set(strOption);
return idOption.notNull();
}