diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-12 14:25:35 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-12 14:25:35 +0200 |
commit | b9af56291f5bfc898ce232b4ebf5065554484962 (patch) | |
tree | 88bd8c5cd77003abdc816281ec493d6025ad5f20 /common/bufferadaptor.h | |
parent | d3cb4e649177443e8ecfd7f86d136fc0a319e2f3 (diff) | |
download | sink-b9af56291f5bfc898ce232b4ebf5065554484962.tar.gz sink-b9af56291f5bfc898ce232b4ebf5065554484962.zip |
We run into this when trying to index a property that is not set.
i.e. in tests.
Diffstat (limited to 'common/bufferadaptor.h')
-rw-r--r-- | common/bufferadaptor.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/bufferadaptor.h b/common/bufferadaptor.h index fd4809b..f393388 100644 --- a/common/bufferadaptor.h +++ b/common/bufferadaptor.h | |||
@@ -66,8 +66,7 @@ public: | |||
66 | virtual QVariant getProperty(const QByteArray &key) const | 66 | virtual QVariant getProperty(const QByteArray &key) const |
67 | { | 67 | { |
68 | if (!mValues.contains(key)) { | 68 | if (!mValues.contains(key)) { |
69 | qWarning() << "Tried to read value that is not available; Did you forget to call Query::request? Property: " << key; | 69 | return {}; |
70 | return QVariant{}; | ||
71 | } | 70 | } |
72 | return mValues.value(key); | 71 | return mValues.value(key); |
73 | } | 72 | } |