diff options
Diffstat (limited to 'common/synchronizerstore.cpp')
-rw-r--r-- | common/synchronizerstore.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/synchronizerstore.cpp b/common/synchronizerstore.cpp index 0dd2846..ca7e6d2 100644 --- a/common/synchronizerstore.cpp +++ b/common/synchronizerstore.cpp | |||
@@ -68,6 +68,11 @@ QByteArray SynchronizerStore::resolveRemoteId(const QByteArray &bufferType, cons | |||
68 | 68 | ||
69 | QByteArray SynchronizerStore::resolveLocalId(const QByteArray &bufferType, const QByteArray &localId) | 69 | QByteArray SynchronizerStore::resolveLocalId(const QByteArray &bufferType, const QByteArray &localId) |
70 | { | 70 | { |
71 | if (localId.isEmpty()) { | ||
72 | SinkError() << "Tried to resolve an empty local id"; | ||
73 | Q_ASSERT(false); | ||
74 | return {}; | ||
75 | } | ||
71 | QByteArray remoteId = Index("localid.mapping." + bufferType, mTransaction).lookup(localId); | 76 | QByteArray remoteId = Index("localid.mapping." + bufferType, mTransaction).lookup(localId); |
72 | if (remoteId.isEmpty()) { | 77 | if (remoteId.isEmpty()) { |
73 | //This can happen if we didn't store the remote id in the first place | 78 | //This can happen if we didn't store the remote id in the first place |