Update Master to 5.1.0.BUILD-SNAPSHOT
`JedisConnection.execute()` no longer accepts `null` arguments.
8adea79e67
* Spring Security 5.1; Reactor 3.2
This commit is contained in:
committed by
Artem Bilan
parent
6718d8d433
commit
525eb004ec
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2015 the original author or authors.
|
||||
* Copyright 2014-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -35,12 +35,15 @@ import org.springframework.util.ObjectUtils;
|
||||
* The Gateway component implementation to perform Redis commands with provided arguments and to return command result.
|
||||
*
|
||||
* @author Artem Bilan
|
||||
* @author Gary Russell
|
||||
* @since 4.0
|
||||
*/
|
||||
public class RedisOutboundGateway extends AbstractReplyProducingMessageHandler {
|
||||
|
||||
private static final SpelExpressionParser PARSER = new SpelExpressionParser();
|
||||
|
||||
private static final byte[][] EMPTY_ARGS = new byte[0][];
|
||||
|
||||
private final RedisTemplate<?, ?> redisTemplate;
|
||||
|
||||
private EvaluationContext evaluationContext;
|
||||
@@ -131,7 +134,7 @@ public class RedisOutboundGateway extends AbstractReplyProducingMessageHandler {
|
||||
}
|
||||
}
|
||||
|
||||
final byte[][] actualArgs = args;
|
||||
final byte[][] actualArgs = args != null ? args : EMPTY_ARGS;
|
||||
|
||||
return this.redisTemplate.execute(
|
||||
(RedisCallback<Object>) connection -> connection.execute(command, actualArgs));
|
||||
|
||||
Reference in New Issue
Block a user