diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/pipeline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/pipeline.cpp b/common/pipeline.cpp index 581e661..feb16e3 100644 --- a/common/pipeline.cpp +++ b/common/pipeline.cpp | |||
@@ -133,7 +133,7 @@ KAsync::Job<qint64> Pipeline::newEntity(void const *command, size_t size) | |||
133 | QByteArray key; | 133 | QByteArray key; |
134 | if (createEntity->entityId()) { | 134 | if (createEntity->entityId()) { |
135 | key = QByteArray(reinterpret_cast<char const *>(createEntity->entityId()->Data()), createEntity->entityId()->size()); | 135 | key = QByteArray(reinterpret_cast<char const *>(createEntity->entityId()->Data()), createEntity->entityId()->size()); |
136 | if (d->entityStore.contains(bufferType, key)) { | 136 | if (!key.isEmpty() && d->entityStore.contains(bufferType, key)) { |
137 | SinkErrorCtx(d->logCtx) << "An entity with this id already exists: " << key; | 137 | SinkErrorCtx(d->logCtx) << "An entity with this id already exists: " << key; |
138 | return KAsync::error<qint64>(0); | 138 | return KAsync::error<qint64>(0); |
139 | } | 139 | } |