diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-03 16:31:09 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-03 16:31:36 +0200 |
commit | 245dc57adedb0c8225aee0066c39f5ea38a39610 (patch) | |
tree | 7e7ecb50f1b82da4f76d4feca40231171a4b9834 /common/pipeline.cpp | |
parent | 5c08ecda71cdbfd8951f9aab657cd2e2697ad0b3 (diff) | |
download | sink-245dc57adedb0c8225aee0066c39f5ea38a39610.tar.gz sink-245dc57adedb0c8225aee0066c39f5ea38a39610.zip |
Fixed pipelinetest
Diffstat (limited to 'common/pipeline.cpp')
-rw-r--r-- | common/pipeline.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/pipeline.cpp b/common/pipeline.cpp index a7059c1..100f158 100644 --- a/common/pipeline.cpp +++ b/common/pipeline.cpp | |||
@@ -228,8 +228,12 @@ KAsync::Job<qint64> Pipeline::modifiedEntity(void const *command, size_t size) | |||
228 | } | 228 | } |
229 | auto modifyEntity = Commands::GetModifyEntity(command); | 229 | auto modifyEntity = Commands::GetModifyEntity(command); |
230 | Q_ASSERT(modifyEntity); | 230 | Q_ASSERT(modifyEntity); |
231 | Q_ASSERT(modifyEntity->modifiedProperties()); | 231 | QList<QByteArray> changeset; |
232 | auto changeset = BufferUtils::fromVector(*modifyEntity->modifiedProperties()); | 232 | if (modifyEntity->modifiedProperties()) { |
233 | changeset = BufferUtils::fromVector(*modifyEntity->modifiedProperties()); | ||
234 | } else { | ||
235 | Warning() << "No changeset available"; | ||
236 | } | ||
233 | const qint64 baseRevision = modifyEntity->revision(); | 237 | const qint64 baseRevision = modifyEntity->revision(); |
234 | const bool replayToSource = modifyEntity->replayToSource(); | 238 | const bool replayToSource = modifyEntity->replayToSource(); |
235 | // TODO rename modifyEntity->domainType to bufferType | 239 | // TODO rename modifyEntity->domainType to bufferType |