From a42948c6bc12a9f44d4c36325894d092f6a8a659 Mon Sep 17 00:00:00 2001 From: jsteemann Date: Tue, 14 Mar 2017 09:49:41 +0100 Subject: [PATCH] fix invalid assertion --- arangod/Aql/Functions.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arangod/Aql/Functions.cpp b/arangod/Aql/Functions.cpp index 296e104db8..824eed42ea 100644 --- a/arangod/Aql/Functions.cpp +++ b/arangod/Aql/Functions.cpp @@ -1544,8 +1544,7 @@ AqlValue Functions::Attributes(arangodb::aql::Query* query, VPackBuilder result; result.openArray(); for (auto const& it : keys) { - TRI_ASSERT(!it.empty()); - if (removeInternal && it.at(0) == '_') { + if (removeInternal && !it.empty() && it.at(0) == '_') { continue; } result.add(VPackValue(it));