Skip to content

Commit

Permalink
[GRAPHDB-544] null pointer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sunlounger committed Dec 12, 2011
1 parent 9b7f8ed commit 13c0915
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Plugins/Index/Implementations/SonesIndices/SonesIndex.cs
Expand Up @@ -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;
}

Expand Down

0 comments on commit 13c0915

Please sign in to comment.