Permalink
Browse files

no key indexing on null for DefaultGraphQuery.

  • Loading branch information...
okram committed Mar 9, 2013
1 parent 4312fdb commit 7c315459c3fe8fd4dab9ed652a12cfeee396486c
@@ -122,7 +122,7 @@ private boolean loadNext() {
if (graph instanceof KeyIndexableGraph) {
final Set<String> keys = ((KeyIndexableGraph) graph).getIndexedKeys(elementClass);
for (HasContainer hasContainer : hasContainers) {
- if (hasContainer.compare.equals(Compare.EQUAL) && keys.contains(hasContainer.key)) {
+ if (hasContainer.compare.equals(Compare.EQUAL) && hasContainer.value != null && keys.contains(hasContainer.key)) {
if (Vertex.class.isAssignableFrom(elementClass))
return graph.getVertices(hasContainer.key, hasContainer.value);
else

0 comments on commit 7c31545

Please sign in to comment.