1
0
Fork 0

Protocol: Avoid crashing on invalid sign text

This commit is contained in:
Peter Bell 2020-05-24 15:15:47 +01:00 committed by peterbell10
parent 9e8598fb1c
commit ce1d6a7ebd
1 changed files with 1 additions and 1 deletions

View File

@ -2742,7 +2742,7 @@ void cProtocol_1_8_0::HandlePacketUpdateSign(cByteBuffer & a_ByteBuffer)
for (int i = 0; i < 4; i++)
{
HANDLE_READ(a_ByteBuffer, ReadVarUTF8String, AString, Line);
if (JsonUtils::ParseString(Line, root))
if (JsonUtils::ParseString(Line, root) && root.isString())
{
Lines[i] = root.asString();
}