mirror of https://gitee.com/bigwinds/arangodb
prevent crashes
This commit is contained in:
parent
c7350c4c06
commit
253fd6f2bc
|
@ -205,9 +205,11 @@ QueryResult Query::execute () {
|
||||||
|
|
||||||
while (nullptr != (value = root->getOne())) {
|
while (nullptr != (value = root->getOne())) {
|
||||||
AqlValue val = value->getValue(0, 0);
|
AqlValue val = value->getValue(0, 0);
|
||||||
TRI_ASSERT(! val.isEmpty());
|
|
||||||
|
if (! val.isEmpty()) {
|
||||||
auto doc = value->getDocumentCollection(0);
|
auto doc = value->getDocumentCollection(0);
|
||||||
json.add(val.toJson(doc));
|
json.add(val.toJson(doc));
|
||||||
|
}
|
||||||
delete value;
|
delete value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue