Skip to content

Commit 08f3926

Browse files
committed
we need to return a valid map to modify
1 parent 4b49b2a commit 08f3926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/mapsmessaging/api/message/Message.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ ByteBuffer[] pack(Map<String, String> updatedMeta) throws IOException {
305305
}
306306

307307
public Map<String, String> getMeta(){
308-
return meta == null ? Map.of() : meta;
308+
return meta == null ? new LinkedHashMap<>() : meta;
309309
}
310310

311311

0 commit comments

Comments
 (0)