We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99ebfa7 commit fe634daCopy full SHA for fe634da
src/main/java/net/spy/memcached/util/KeyUtil.java
@@ -17,7 +17,7 @@ public class KeyUtil {
17
*/
18
public static byte[] getKeyBytes(String k) {
19
try {
20
- return k.getBytes("UTF-8");
+ return k == null ? null : k.getBytes("UTF-8");
21
} catch (UnsupportedEncodingException e) {
22
throw new RuntimeException(e);
23
}
0 commit comments