This is an automated email from the ASF dual-hosted git repository.
nizhikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 38d5f4f3f93 IGNITE-25169 Fix possible NPE in
BinaryUtils#binaryMetadata (#12084)
38d5f4f3f93 is described below
commit 38d5f4f3f930cc1906d7ee0e7c0e92e65f33ce6e
Author: Ilya Shishkov <[email protected]>
AuthorDate: Thu May 22 15:46:55 2025 +0300
IGNITE-25169 Fix possible NPE in BinaryUtils#binaryMetadata (#12084)
---
.../src/main/java/org/apache/ignite/internal/binary/BinaryUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryUtils.java
b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryUtils.java
index 38e6650daf2..014522149a3 100644
---
a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryUtils.java
+++
b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryUtils.java
@@ -3122,7 +3122,7 @@ public class BinaryUtils {
@Nullable Collection<T2<Integer, List<Integer>>> schemasAndFieldIds,
boolean isEnum,
@Nullable Map<String, Integer> enumMap) {
- List<BinarySchema> schemas = schemasAndFieldIds.stream()
+ List<BinarySchema> schemas = F.isEmpty(schemasAndFieldIds) ? null :
schemasAndFieldIds.stream()
.map(t -> new BinarySchema(t.get1(), t.get2()))
.collect(Collectors.toList());