Skip to content

Commit e82b2bf

Browse files
GH-37 Fix shardKeyParameters null check
1 parent 31aa533 commit e82b2bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/zalando/sprocwrapper/proxy/StoredProcedure.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private static int[] createTypes(final List<StoredProcedureParameter> params) {
221221
}
222222

223223
public int getShardId(final Object[] objs) {
224-
if (shardKeyParameters == null) {
224+
if (shardKeyParameters.isEmpty()) {
225225
return shardStrategy.getShardId(null);
226226
}
227227

0 commit comments

Comments
 (0)