1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-15 00:24:19 +00:00

Avoided an assertion in OnlineUnlockStatus

This commit is contained in:
jules 2015-08-12 11:33:30 +01:00
parent 0234a741e0
commit 3a1441e77b

View file

@ -71,9 +71,10 @@ struct KeyFileUtils
val.parseString (hexData, 16);
RSAKey key (rsaPublicKey);
key.applyToValue (val);
ScopedPointer<XmlElement> xml;
ScopedPointer<XmlElement> xml (XmlDocument::parse (val.toMemoryBlock().toString()));
if (key.isValid())
xml = XmlDocument::parse (val.toMemoryBlock().toString());
return xml != nullptr ? *xml : XmlElement("key");
}