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:
parent
0234a741e0
commit
3a1441e77b
1 changed files with 3 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue