X-czh opened a new issue, #2062: URL: https://github.com/apache/fury/issues/2062
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/fury/issues) and found no similar issues. ### Version Fury: 0.10.0 (0.9.0 has no issue) JDK: 8u442 OS: macOS 15.3 ### Component(s) Java ### Minimal reproduce step ```java @Test public void test() throws IOException { Fury fury = Fury.builder() .withLanguage(Language.JAVA) .build(); Map<String, String> m = new HashMap<>(); m.put("1", null); ByteArrayOutputStream outputStream = new ByteArrayOutputStream(100); fury.serialize(outputStream, m); InputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray()); FuryInputStream input = new FuryInputStream(inputStream); Map<String, String> deserialized = (Map<String, String>) fury.deserialize(input); } ``` ### What did you expect to see? No exception. ### What did you see instead? java.lang.IndexOutOfBoundsException: No enough data in the stream java.io.ByteArrayInputStream@4de5031f at org.apache.fury.io.FuryInputStream.fillBuffer(FuryInputStream.java:66) at org.apache.fury.memory.MemoryBuffer.readUnsignedByte(MemoryBuffer.java:1330) at org.apache.fury.serializer.collection.AbstractMapSerializer.readJavaNullChunk(AbstractMapSerializer.java:685) at org.apache.fury.serializer.collection.AbstractMapSerializer.readElements(AbstractMapSerializer.java:628) at org.apache.fury.serializer.collection.AbstractMapSerializer.read(AbstractMapSerializer.java:610) at org.apache.fury.Fury.readDataInternal(Fury.java:972) at org.apache.fury.Fury.readRef(Fury.java:865) at org.apache.fury.Fury.deserialize(Fury.java:797) at org.apache.fury.Fury.deserialize(Fury.java:820) at org.apache.fury.Fury.deserialize(Fury.java:813) ### Anything Else? _No response_ ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
