Merge pull request #592 from flowln/technic
Use empty string when version is null in the Technic pack manifest
This commit is contained in:
commit
1e6df7eec0
@ -37,7 +37,7 @@ void loadPack(Pack& v, QJsonObject& obj)
|
|||||||
static void loadPackBuildMod(PackBuildMod& b, QJsonObject& obj)
|
static void loadPackBuildMod(PackBuildMod& b, QJsonObject& obj)
|
||||||
{
|
{
|
||||||
b.name = Json::requireString(obj, "name");
|
b.name = Json::requireString(obj, "name");
|
||||||
b.version = Json::requireString(obj, "version");
|
b.version = Json::ensureString(obj, "version", "");
|
||||||
b.md5 = Json::requireString(obj, "md5");
|
b.md5 = Json::requireString(obj, "md5");
|
||||||
b.url = Json::requireString(obj, "url");
|
b.url = Json::requireString(obj, "url");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user