Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[GRAPHDB-544] null pointer fix

  • Loading branch information...
commit 13c09152a86d12f41734e1156712da0a79b124f3 1 parent 9b7f8ed
@sunlounger sunlounger authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 Plugins/Index/Implementations/SonesIndices/SonesIndex.cs
View
9 Plugins/Index/Implementations/SonesIndices/SonesIndex.cs
@@ -219,7 +219,14 @@ public override bool TryGetValues(IComparable myKey, out ICloseableEnumerable<lo
var values = new HashSet<long>();
var done = _Index.TryGetValue(myKey, out values);
- myVertexIDs = new CloseableEnumerable<long>(values);
+ if (values == null)
+ {
+ myVertexIDs = null;
+ }
+ else
+ {
+ myVertexIDs = new CloseableEnumerable<long>(values);
+ }
return done;
}
Please sign in to comment.
Something went wrong with that request. Please try again.