Skip to content
This repository has been archived by the owner on Jul 7, 2019. It is now read-only.

Commit

Permalink
Merge pull request #136 from eswdd/master
Browse files Browse the repository at this point in the history
kvp.Value can be null
  • Loading branch information
enyim committed Nov 5, 2014
2 parents 62d1cbf + 78be97c commit 9d7f87a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Enyim.Caching/Memcached/ServerStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,15 @@ public IEnumerable<KeyValuePair<IPEndPoint, string>> GetRaw(string key)
{
string tmp;

return this.results.Select(kvp => new KeyValuePair<IPEndPoint, string>(kvp.Key, kvp.Value.TryGetValue(key, out tmp) ? tmp : null)).ToList();
return this.results.Select(kvp => new KeyValuePair<IPEndPoint, string>(kvp.Key, kvp.Value != null && kvp.Value.TryGetValue(key, out tmp) ? tmp : null)).ToList();
}
}
}

#region [ License information ]
/* ************************************************************
*
* Copyright (c) 2010 Attila Kiskó, enyim.com
* Copyright (c) 2010 Attila Kiskó, enyim.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 9d7f87a

Please sign in to comment.