Fix FFZ emote assertion crash (#2192)

* Fix crash on null urls from FFZ API

* Update CHANGELOG.md

* Turns out there's an actual method for this
This commit is contained in:
Daniel
2020-11-17 04:27:14 -05:00
committed by GitHub
parent cc42e6f6ba
commit b572c187a4
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ namespace {
Url getEmoteLink(const QJsonObject &urls, const QString &emoteScale)
{
auto emote = urls.value(emoteScale);
if (emote.isUndefined())
if (emote.isUndefined() || emote.isNull())
{
return {""};
}