Browse Source

Avoided an assertion in OnlineUnlockStatus

tags/2021-05-28
jules 10 years ago
parent
commit
3a1441e77b
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      modules/juce_tracktion_marketplace/marketplace/juce_OnlineUnlockStatus.cpp

+ 3
- 2
modules/juce_tracktion_marketplace/marketplace/juce_OnlineUnlockStatus.cpp 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");
}


Loading…
Cancel
Save