Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit 338f5c7

Browse files
committed
WIP
1 parent 1b0f43d commit 338f5c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/analysis/analyzers.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ bool MakeAnalyzer(velocypack::Slice input, analyzer::ptr& output) {
229229
return true;
230230
}
231231
input = input.get(kPropertiesParam);
232+
if (input.isNone()) {
233+
input = velocypack::Slice::emptyObjectSlice();
234+
}
232235
output = get(type, irs::type<irs::text_format::vpack>::get(),
233236
{input.startAs<char>(), input.byteSize()});
234237
if (!output) {
@@ -250,6 +253,9 @@ bool NormalizeAnalyzer(velocypack::Slice input, velocypack::Builder& output) {
250253
}
251254
output.add(kTypeParam, velocypack::Value{type});
252255
input = input.get(kPropertiesParam);
256+
if (input.isNone()) {
257+
input = velocypack::Slice::emptyObjectSlice();
258+
}
253259
std::string normalized;
254260
if (normalize(normalized, type, irs::type<text_format::vpack>::get(),
255261
{input.startAs<char>(), input.byteSize()})) {

0 commit comments

Comments
 (0)