From 4884c88ed5e1ff3164df2f6896da76a88699e694 Mon Sep 17 00:00:00 2001 From: fourtf Date: Tue, 17 Nov 2020 10:33:29 +0100 Subject: [PATCH] fixed ffz issue --- chatterino.pro | 2 ++ src/providers/ffz/FfzEmotes.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/chatterino.pro b/chatterino.pro index 56228b399..69f009af6 100644 --- a/chatterino.pro +++ b/chatterino.pro @@ -69,6 +69,8 @@ macx { CONFIG(debug, debug|release) { DEFINES += C_DEBUG DEFINES += QT_DEBUG +} else { + DEFINES += NDEBUG } # Submodules diff --git a/src/providers/ffz/FfzEmotes.cpp b/src/providers/ffz/FfzEmotes.cpp index dc1b1ab3c..ffef47e91 100644 --- a/src/providers/ffz/FfzEmotes.cpp +++ b/src/providers/ffz/FfzEmotes.cpp @@ -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 {""}; }