[News] Check if revision is a string
This commit is contained in:
parent
aa76d38f3c
commit
358d039244
@ -64,6 +64,8 @@ namespace Components
|
||||
std::string error;
|
||||
json11::Json client = json11::Json::parse(_client.data(), error);
|
||||
|
||||
if (client["revision"].is_string())
|
||||
{
|
||||
std::string revisionString = client["revision"].string_value();
|
||||
|
||||
if (!revisionString.empty())
|
||||
@ -75,6 +77,7 @@ namespace Components
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void News::LaunchUpdater(std::string params)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user