File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
main/java/redis/clients/jedis/util
test/java/redis/clients/jedis/tests Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public static byte[][] encodeMany(final String... strs) {
2626 public static byte [] encode (final String str ) {
2727 try {
2828 if (str == null ) {
29- throw new JedisException ("null value cannot be sent to redis" );
29+ throw new IllegalArgumentException ("null value cannot be sent to redis" );
3030 }
3131 return str .getBytes (Protocol .CHARSET );
3232 } catch (UnsupportedEncodingException e ) {
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ public void infiniteTimeout() throws Exception {
113113 jedis .close ();
114114 }
115115
116- @ Test (expected = JedisException .class )
116+ @ Test (expected = IllegalArgumentException .class )
117117 public void failWhenSendingNullValues () {
118118 jedis .set ("foo" , null );
119119 }
You can’t perform that action at this time.
0 commit comments