Added a check for emptiness of telemetry event data

This commit is contained in:
pereverzev_v 2019-12-13 17:01:58 +02:00
parent 37660ea244
commit 6fb49c0d5c

View file

@ -27,7 +27,7 @@ TelemetryService::TelemetryService()
void TelemetryService::sendEvent(const QString &category, const QString &action, const QString &label, const QVariant &value, const QVariantMap &customValues)
{
if (!isTelemetryAllowed())
if (!isTelemetryAllowed() || category.isEmpty() || action.isEmpty())
return;
GAnalytics::instance()->sendEvent(category, action, label, value, customValues);