Permalink
Browse files

[GRAPHDB-544] null pointer fix

  • Loading branch information...
1 parent 9b7f8ed commit 13c09152a86d12f41734e1156712da0a79b124f3 @sunlounger sunlounger committed Dec 12, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 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;
}

0 comments on commit 13c0915

Please sign in to comment.